Computer Application PP1 FA1 Grade 10 QP
Computer Application PP1 FA1 Grade 10 QP
(One hour)
Formative Assessment – 1, 2024-25
GRADE: X Max. Marks: 50
Attempt all questions from Section A and any two questions from Section B.
The intended marks for questions or parts of questions, are given in brackets [ ].
Question 1
Choose the correct option: [10]
(i) The array char P[]={'a','b'}; occupies
a) 2 bytes b) 4 bytes
c) 8 bytes d) 6 bytes
(ii) How many boolean literals are there in java?
(a)0 (b)1
(c)2 (d)3
(iii) ___ searching is faster when the arrays are very lengthy.
(a)Linear (b)Bubble
(c)Binary (d)Selection
1
(iv) A _______ data type which occupies 32 bits for integer as well as fractional part.
(a) double (b) int
(c) float (d) byte
(v)A single dimensional array contains N elements. What will be the last subscript of the array.
a)N-1 b)N+1
c)N d)N*N
(vi) Identify the correct array declaration:
a) int [] d=new int[9]; b)int d[]=9;
c) int d[]=new int[]; d)int d[9];
(x) Which of the following is the same as a=a+1 where a is of int datatype?
a) a+=1; b)++a;
c)a++; d)All of the above
Question 2
(i) Predict the output of the following snippet. [2]
int s=0;
int a[]={2,4,6,8};
for(int i=0;i<=1;i++)
s=a[i] + a[3-i];
System.out.println(s);
2
(ii) Give the output of the following program snippet: [2]
int a = 2, b=4, c=10;
a *= ++a * c++ - --b;
System.out.println (“Result is:” + a);
(v) Write the differences between selection sort and bubble sort [2]
SECTION B ( 30 Marks)
Attempt any 2 questions from this section
Question 3 Write a program to input integer elements into a single dimensional [15]
array of size 20 and perform the following operations:
Display the largest number from the array.
Display the smallest number from the array.
Question 5 Write a program to input numbers into a 4×4 matrix in a Double [15]
Dimensional array. Find the sum of all even numbers in it and
product of all odd numbers in it.
************************