0% found this document useful (0 votes)
43 views6 pages

Adobe Scan 19-Oct-2024

The document outlines the first semester examination details for Grade X in Computer Applications at Children's Academy, scheduled for October 19, 2024. It includes instructions for the exam format, sections to be attempted, and various questions covering programming concepts and Java language specifics. Additionally, it lists programming tasks and class design assignments that students are expected to complete.

Uploaded by

deb.bsnl
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)
43 views6 pages

Adobe Scan 19-Oct-2024

The document outlines the first semester examination details for Grade X in Computer Applications at Children's Academy, scheduled for October 19, 2024. It includes instructions for the exam format, sections to be attempted, and various questions covering programming concepts and Java language specifics. Additionally, it lists programming tasks and class design assignments that students are expected to complete.

Uploaded by

deb.bsnl
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/ 6

Children's Academy

o Bachani Nagar o Ashok


Group of Schools
oThakur
Nagar Complex o Ghodbunder Road
Malad (E) Kandivll(E)
WORK RADITON
A DIS
NE
Kandivli (E) Thane (W)
ARE OUR FIRST SEMESTER
Grade : X
EXAMINATION 2024-25
Subject : COMPUTER
Date 19/10/2024 APPLICATIONS Marks : 100
Time 2 hours
Y'ouwill not be allowed to write
during the first I5 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.
This paper consists of6 printed pages.
Atempt all questions from Section And any four questions from Section B.
All workings, includng rough work, must be cleariy shown and must be done on the same sheet
as the rest of the answer.

The intended marks for questions or parts of questions are given in brackets [ J.

SECTIONAs|
(Attempt all questions from this section)
Question 1 \o| [20]
Choose the correct alternative
i) Sagar wants the members of his class Employee to be accessible only to his class
"Employee", what access specifier should he use for the members?
(a) public (b) protected

Ne) private (d) default


Yii) When the object of a class is created will be called.
class (b) library
(c) compiler (d) constructor

V(ii) Which of the following is the correct way to compare two strings in case
insensitive manner in java?
(a) strl.compare To(str2) 6) strl compareTolgnoreCase(str2)
(c) strl.equalTo(str2) (d) strl.equalTolgnore Case(str2)
i Find the odd man out.
Ja) Signature (b) Object
(c) Access Specifier (d) Modifier
What will be the physical storage size of the following declaration?
double arr[l={344, 22, 54.55, 23.11, 54.55};
(a) 36 bytes b) 40 bytes
(c) 20 bytes (d) 72 bytes

6 CATCLD/2024-25
Computer Applications/Grade XICSE/First Semester Examination Page I of
ti) Imagine an integer array 'arr' with 10elements init. What will be the output of
the following statement?
System.out.printn(arr[ 10]);
(a) null (b) true
(c) 0 T Eror
(i) The parameters that are passed to the method when it is invoked are called
(a) Formal Parameters b Actual Parameters
(c) Informal Parameters (d) Null Parameters
wi) Which statement is used to exit a loop prematurely?
(a) returm (b) exit
0 break (d) continue
, ) Assertion (A): Multiple constructors can be defined with the same set of
arguments / parameters.
Reason (R):Aclass can have multiple constructors.
(a) Both Assertion (A) and Reason (R)are true and Reason (R) is a correct
explanation of Assertion (A).
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a
correct explanation of Assertion (A).
(c) Assertion (A) is true and Reason (R) is false.
( Assertion (A)is false and Reason (R) is true.
.(x Elements in the array are always stored in memory locations.
(a Random by Sequential
C Sequential and Random (d) Ternary
i) ldentify the composite data type from the following declarations.
(a) static int num; (b) private char ch;
vo int ar: (d) boolean flag;
(oi Name the method of search depicted in the following picture.
(ay Linear Search (b) Binary Search Storch '6

(C) Blind Search (d) Raw Search


8 126 10 2
What will be the return type of the function lastIndexOf)?
(a) char int

(c) String (d) Boolean

Computer Applications/Grade X/TCSE/First Semester Examination/Page 2of6 CATCLD2024-25


(xiv) What is the output of the following code
int i;
snippet?
for(i=0; i<5; itt);

System.out.print (i);

(a) 12345
6) 01234
(c) 5
(d Error
(xv) Which among the following is used to store a
64-bit number without decimal?
(a) int
e long
(c float (d) double
(i) ldentify the type of the following
statement.
Car hybrid=new Car):
(a) Assignment (b) Method invocation
se) Object Creation (d) Exception
(xvii) Identify the type of error in the
following code snippet.
public static void main()

double num;
num-sc.nextDouble():
(a) No Error
Syntax Error
(c) Runtime Error (d) Logical Eror
aviil) Find the output of the following code
snippet.
String fruit[]={"apple", "banana",
"avocado", "grapes"};
System.out.println(fruit(2\.replace(»a', *");
(a) b*n*n* (b) b*nana
(c)
*vocado *yoc* do
M(xix) Which one of the following is an
infinite loop?
(a)
for(i=1; i<=10; it+) (b) for(i=10; i<=1; i
se for(i=1; i>0; itt) (d) for(i=10; i>-0; i-)
(xY A menu driven program can be
created using statement.
(a) loop (b) menu
(c) void
(d switch

Computer Applications/Grade X/ICSE/First Semester


um C)
(1X) (vül) (V) Qim) Quest6120ion 2
(X) Qiii) i)
o Write Write Wite
puter Convert String assigning Find (b)
double(5);
arrnew
double (a) String Write aName
System.out.println("X=" else {if(x>y) ; State List three
while(x int loopAnalyze numF"8'char
ans-Character.isDigit(num);
for(int y-=x; -=y; X i, the anysubjects any
the equivalent x-30, will statement a
tions str= A
a Amethod the
random();
arrli]=i +i-0;
andheight= errors
ExtractExtract statement
math following != execute the data two two
5 y)y=5; following
store i<108; random in and and "World library o.02-3y³ type Java of properties
"9.4"; that (*ty)n java packages. your in
Grade the thedisplay display Health in and and Java
above
it+)O numbers given java method checks expression whatprogram value choice.
irst to of
the word
Organization"; to wil declare the
value do that if tx of
betweenprogram last the an the Constructor.
"Health" "tY + be
segment
ster in letter following doesentered
for output? variable and
the segment
0
the="ty;
and of not following. initialize
variable the from character and
e have 'ans'.
100 and string the if determine
to given any }
'h' string the
the write str. argument. is
of statement an single
the given the str. alphabet how
4 type
of6 array. correct many variable
double. is
or
code digit. times with
for the the
20)
SECTION B
(Answer any four questions from this section)
Question 3 |15|
Create a class named Pizza using the following data members.
0nstance Variables:

pizzaSize to store the size of the pizza (small, medium, or large)


cheese the number of cheese toppings
pepperoni the number of pepperoni toppings
mushroom -the number of mushroom toppings
Member Methods:
variables to their default values
publicConstructor -to initialise allthe instance
CalculateCost() -A publicmethod that calculates the cost of apizza.
Pizza cost is calculated as follows:
Small: Rs.500 + Rs.25 per topping
Medium: Rs.650 + Rs.30 per topping
Large: Rs.800 + Rs 35 per topping
3.5% GST will be applicable on allthe bills.
like pizza size,
PizzaDescription() -A public method that Displays all the details
quantity of each topping and the pizza cost.
functions.
Create a main() method to callall above

[15]
Question 4
matrix using Double Dimensional
Write a program in Java to store the numbers in 4x4
the sum of the numbers of
Array. Find the sum of the numbers of the left diagonal and
the right diagonal of the matrix.

Sample input
2 13
33
24
61 3 29

9 82 4

Sample output
The sum of the left diagonal elements =15
The sum oftheright diagonal elements = 12

Computer Applications/Grade X1CSE/First Semester Examination/Page 5of 6 CATCLD2024-25


Question 5
Design a class to overload a function check() as follows:
(1) boolean check(char ch): function that returns true if the received character is
a vowel otherwise returns false.

(2) void check (char chl,char ch2) : function that checks if the chl and ch2 are
the same characters or not. If they are not the same character display
ASCII
code of the both.
(3) void check(char chl, char ch2, char ch3): function that displays the largest
character from the characters received.

Question 6 [15]
Declare a single dimensional array to store daily temperatures for the month of
May. Using this structure, write a program to find:
(1) The hottest day of the month
(2) The coldest day of the month
(3) The average temperature of the month

Question 7 [15]
Sam designs a program to check the strength of a password. A strong password
should satisfy the following conditions:
length of the password should be at least 12 characters
Should at least have 4 upper case letters, 4 lower case letters, 2 digits and 2
special characters
Define a class to accept the password and check whether the password is strong or not.
Question 8 [15]
Write a program to input a number and count the number of digits. The program further
checks whether the number contains an odd number of digits or even number of digits.

Sample Input: 749


Sample Output: Number of digits=3
The number contains an odd number of digits.

k*****THE END***** ****** * * **** **** *

Computer Applications/Grade X/ICSEJFirst Semester Examination/Page 6of 6 CATOLD/2024-25

You might also like