0% found this document useful (0 votes)
18 views

Computer Application PP1 FA1 Grade 10 QP

Uploaded by

oogaooga06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Computer Application PP1 FA1 Grade 10 QP

Uploaded by

oogaooga06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

COMPUTER APPLICATIONS

(One hour)
Formative Assessment – 1, 2024-25
GRADE: X Max. Marks: 50

Answers to this Paper must be written on the paper provided separately.


You will not be allowed to write during the first 10 minutes.
This time is to be spent in reading the Question Paper.
The time given at the head of this Paper is the time allowed for writing the
answers.

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 [ ].

SECTION A (20 Marks)


Attempt all questions from this Section

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];

(vii) Automatic type conversion(Implicit) is possible in which of the following cases?


a)double to float b)boolean to char
c)char to boolean d) float to double

(viii) The number of bits occupied by a short datatype is :


a)2 b)1
c)4 c)16

(ix)Which is the logical operator that works with a single operand?


a)Logical AND b)Logical OR
c)Logical NOT d)None of these

(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);

(iii) Identify the following : [2]


a) The default initial value of the boolean data type.
b) Escape sequence character used in java for newline.

(iv) Define Keyword. Write any 2 keywords used in java [2]

(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 4 Write a program to accept 10 different numbers in a Single Dimensional [15]


Array (SDA). Now, enter a number and search whether the number is
present or not in the list of array elements by using the Binary Search
technique.

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.

************************

You might also like