Record No.
: ACAD/R/18
Pimpri Chinchwad Education Trust’s
Pimpri Chinchwad University Revision:
Sate Maval, Pune
Date: 06/01/2025
Assignment-1
Department/Program: Academic Year: 2024-25 Maximum Marks:10
Semester: CSE Year and Div.: SY G
Subject: Java Programming (UBTCE212/PCC) Subject Teacher: Dr. Sagar Dhanraj Pande
Name & sign
Assignment No: 01 Date: 06/01/2025 Date of Submission: 15/01/2025
Question 1 What are primitive and non-primitive data types in Java? Provide examples of each.
Question 2 Explain the difference between System.out.print(), System.out.println(), and
System.out.printf() with examples.
Question 3 Why is it important to use the appropriate data type for variables? Give an example where
choosing the wrong data type can lead to issues.
Question 4 Write a program to read two integers from the user and display their sum, difference, product,
and quotient.
Question 5 Write a program to calculate and display the area and perimeter of a rectangle based on user
input.
Question 6 What are conditional statements in Java? Explain with examples.
Question 7 Compare for, while, and do-while loops with examples.
Question 8 Explain how arrays are declared, initialized, and used in Java with an example.
Question 9 Write a program to find the maximum and minimum values in an array of n numbers entered
by the user.
Question 10 Write a program to calculate the sum of all elements in an array and determine whether the
sum is odd or even using a conditional statement.
Page 1 of 3
Record No.:
ACAD/R/18A
Pimpri Chinchwad Education Trust’s
Pimpri Chinchwad University Revision:
Sate Maval, Pune
Date:
Assignment Submission Record
Rollno. Sign of Rollno. Sign of Rollno. Sign of
student student student
1 25 49
2 26 50
3 27 51
4 28 52
5 29 53
6 30 54
7 31 55
8 32 56
9 33 57
10 34 58
11 35 59
12 36 60
13 37 61
14 38 62
15 39 63
16 40 64
17 41 65
18 42 66
19 43 67
20 44 68
21 45 69
22 46 70
23 47 71
24 48 72
Page 2 of 3
Page 3 of 3