0 ratings 0% found this document useful (0 votes) 853 views 19 pages Specimen Papers
Specimen paper of all subject of ice class 10th 2025 which helps u to now the pattern of the board and weightage of all subjects including computer which may Specimen paper of all subject of ice class 10th 2025 which helps u to now the pattern of the board and weightageSpecimen paper of all subject of ice class 10th 2025 which helps u to now the pattern of the board and weightage
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items
Save Specimen papers For Later ICSE 2025 EXAMINATION
SPECIMEN QUESTION PAPER
COMPUTER APPLICATIONS
Maximum Marks: 100
Time allowed: Two hours
Answers to this Paper must be written on the paper provided separately.
You will not be allowed to write during the first 15 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 is divided into two Sections.
Attempt all questions from Section A and any four questions from Section B.
The intended marks for questions or parts of questions are given in brackets[ ].
Instruction for the Supervising Examiner
Kindly read aloud the Instructions given above to all the candidates present in the Examination
Hall.
‘725 861 — SPECIMEN Tofi2SECTION A
(Attempt all questions from this Section.)
Question 1
Choose the correct answers to the questions from the given options.
(Do not copy the question, write the correct answers only.)
° (ie |zie
ie |e
Air | ie
>
a9
999
,
ZS
‘Name the above structure:
(@) One dimensional array
(&) Two Dimensional array with 4 rows and 5 columns
(©) Three dimensional array
(a) Two Dimensional array with 5 rows and 4 columns
di) "Java compiled code (byte code) can run on all operating systems"
—Name the feature.
(a) Robust and Secure
(b) Object Oriented
(©) Platform Independent
@ Multithreaded
ii) The size of "nis:
(@) bytes
(b) 4 bytes
© Bbytes
@ 16bytes
[20]
[Analysis]
[Understanding]
[Recall]
‘725 861 — SPECIMEN
2of 12(i) Identify the operator that gets the highest precedence while
evaluating the given expression:
atb%c*d-e
@ +
® %
@ -
@* [Analysis]
w Which of the following is a valid java keyword?
@ If
(b) BOOLEAN
(© static
@ Switch [Understanding]
(wi) The output of the following code is:
System.out printIn(Math.ceil(6.4)+Math.floor(-1-2));
(@) 30
) 4
© 3
@ 40 [Analysis]
(vii) Which of the following returns a String?
(a) lengthO
(b) charAt(int)
(©) replace(char, char)
(@)_ indexOf(String) [Understanding]
(viii) Which of the following is not true with regards to a switch
statement?
(a) checks for an equality between the input and the case labels,
(b) supports floating point constants
(©) break is used to exit from the switch block
(@) case labels are unique [Understanding]
725 861 — SPECIMEN Sof 12(ix) Consider the array given below:
char chf]={‘A'/EYT/O,"U'};
Write the output of the following statements:
System.out printin(ch{0]*2);
@ 65
() 130
© ‘A
@ 0 [Analysis]
@) ‘To execute a loop 10 times, which of the following is correct?
(@) for(i
30;i+=2)
(b) for (inti 30;i+=3)
(©) for (int i=11;i<20;+4)
(@) for (int i=11;i<-21,5+4) [Analysis]
(xi) ‘A single dimensional array has 50 elements, which of the following
is the correct statement to initialize the last element to 100.
(@)_ x{51}-100
() x{48}=100
(© x{49}-100
(@)x{50}=100 [Analysis]
Method prototype for the method compute which accepts two
integer arguments and returns true/false.
(2) void compute (int a, int b)
(b) boolean compute (int a, int b)
(©) Boolean compute (int a,b)
(@) int compute (int a, int b) [Understanding]
125 861 — SPECIMEN 4of 12(xiii) The statement that brings the control back to the calling method is:
(a) break
(b) System.exit(0)
(© continue
@ return
(xiv) The default value of a boolean variable
(a) False
() 0
(©) false
@ Tre
(xv) The method to convert a lowercase character to uppercase is:
(a) String.toUpperCase( )
(6) Character.isUppercase (char )
(©) Character.toUpperCase( char )
(@_ toUpperCase ()
(xvi) Assertion (A): Integer class can be used in the program without
calling a package.
Reason (R): It belongs to the default package java.lang.
(@) Both Assertion (A) and Reason (R) are true and Reason (R)
is a correct explanation of Assertion (A)
() Both Assertion (A) and Reason (R) are true and Reason (R)
is not a correct explanation of Assertion(A)
(©) Assertion (A) is true and Reason (R) is false
(d) Assertion (A) is false and Reason (R) is true
[Recall]
[Recall]
[Recall]
[Application]
125 861 — SPECIMEN
Sof 12(xvii) A student executes the following code to increase the value of a
variable ‘x’ by 2.
He has written the following statement, which is incorrect.
xa42;
What will be the correct statement?
AL x4=2;
Box
C. x=x42;
(@) Only A
(b) Only
(© Alllthe three
@ Both A and C [Analysis]
(xviii) The statement used to find the total number of Strings present in
the string array String s{] is:
(@) sJength
(b) silength()
(©) _length(s)
@_len(s) [Analysis]
(xix) Consider the following program segment in which the statements
are jumbled, choose the correct order of statements to swap two
variables using the third variable.
void swap(int a, int b)
{ a0
b=t; 2@
intt=0; > ()
t=a (4)
}
@ ()2)G)@)
&) BAM
© OB)@Q)
@ AVDAGE) [Analysis]
‘725 861 - SPECIMEN 6 of 12(xx) Assertion(A): An argument is a value that is passed to a method
when it is called.
Reason(R): Variables which are declared in a method
prototype to receive values are called actual
parameters
(@) 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)
(©) Assertion (A) is true and Reason (R) is false
(@)_ Assertion (A) is false and Reason (R) is true
Question 2
@ Rewrite the following code using single if statement.
if (code='g')
System.out.printin ("GREEN ");
else if (code=='G')
System.out printin ("GREEN ");
Gi) Evaluate the given expression when the value of a=2 and b=3
btsatt-+tb + Ha;
System. out printin ("a= "+a);
System.out printin ("b= "+b);
Gi) A student executes the following program segment and gets an
error. Identify the statement which has an error, correct the same
to get the output as WIN.
boolean x = true;
switch(x)
{ case 1: System.out.printin ("WIN"); break;
case 2: System.out printin ("LOOSE");
3
725 861 - SPECIMEN
[Application]
[Understanding]
2]
[Analysis]
[2]
[Analysis]
Tof 12(iv) ‘Write the Java expression for Vx + Jy (21
[Understanding]
W) How many times will the following loop execute? Write the 2)
output of the code:
int x=10;
while (true) {
System.out printIn (x++ * 2);
if (%3—=0)
break;
} [Analysis]
(vi) Write the output of the following String methods: Q]
String x= "Galaxy ", y= "Games ";
(a) System.out.println (x.charAt(0)==y.charAt(0));
(b) System.out.printn (x.compareTo(y)); [Analysis]
(vii) Predict the output of the following code snippet: Qi
char ch="B';
char chr= Character.toLowerCase(ch);
int n=(int) chr-10;
System.out printin((char)n+"\t"+chr);
(viii) _A students trying to convert the string present in x to a numerical 21
value, so that he can find the square root of the converted value,
However the code has an error. Name the error (syntax / logical /
runtime). Correct the code so that it compiles and runs correctly.
String x= "25";
int y=Double.parseDouble (x);
double Math sqrt (y);
System.out printin (7); [Analysis]
T25 861 - SPECIMEN 8 of 12(x) Consider the following program segment and answer the questions 2
below:
class calculate
{
int a; double b;
calculated)
calculate(int x, double y)
{
=
bys
}
void sum()
{ [Analysis]
System.out printIn(a*b);
B
‘Name the type of constructors used in the above program segment?
@® Consider the following program segment and answer the 2
questions given below:
int xl] []= { (2,4,5,6}. (5,7,8,1}, (34, 1,10, 9}}5
(a) What is the position of 34?
(b) What is the result of x{2](3] + x(1][2]? [Analysis]
125 861 — SPECIMEN 9 of 12SECTION B
(Answer any four questions from this Section.)
The answers in this section should consist of the programs in either BlueJ environment or any
program environment with java as the base.
Each program should be written using variable description / mnemonic codes so that the logic of the
program is clearly depicted.
Flowcharts and algorithms are not required.
Buffered Reader / Data Input Stream should not be used in the programs.
Question 3 [15]
Define a class with the following specifications:
Class name: Bank
Member variables:
double p — stores the principal amount
double n — stores the time period in years
double r— stores the rate of interest,
double a— stores the amount
‘member methods:
void accept ()— input values for p and n using Scanner class methods
only.
void calculate ()— calculate the amount based on the following conditions:
Time in (Years) Rate %
Upto % 9
>to t year 10
ST t0 3 years ii
>3 years 12
a=p(i+ mn)
void display ()~ display the details in the given format.
Principal Time Rate Amount
woes ox wx x [Understanding /
Application]
Write the main method to create an object and call the above methods.
‘T25 861 — SPECIMEN 10 of 12Question 4
Define a class to search for a value input by the user from the list of values
given below. If itis found display the message "Search successful”, otherwise
display the message "Search clement not found” using Binary search
U5]
technique. [Understanding /
5.6, 11.5, 20.8, 35.4, 43.1, 52.4, 66.6, 78.9, 80.0, 95.5. Application]
Question 5 [15]
Define a class to accept a string and convert the same to uppercase, create
and display the new string by replacing each vowel by immediate next
character and every consonant by the previous character. The other characters
remain the same.
Example: Input : IMAGINATION@2024 [Understanding /
Application]
Output : ALBFJMBSIPM@2024
Question 6 [15]
Define a class to accept values into 4x4 array and find and display the sum of
each row.
Example:
AM={1,2,3,4},{5,6,7,8},€1,3,5,7},{2,5,3,1}}
Output:
sum of row 1 =10 (1+2+3+4)
sum of row 2= 26 (5+6+74+8)
sum of row 3=16 (1+3+5+7) {Understanding /
sum of row 4= 11 (245+3+1) Application]
25 861 -SPECIMEN lof 12Question 7
Define a class to accept a number and check whether it is a SUPERSPY Us}
number or not. A number is called SUPERSPY if the sum of the digits equals
the number of the digits.
Examplel:
Input: 1021
output: SUPERSPY number [SUM OF THE DIGITS = 1+0+2+1 = 4,
‘NUMBER OF DIGITS = 4]
Example2:
Input: 125 [Understanding /
output: Not an SUPERSPY number [1+2+5 is not equal to 3] Application]
Question 8 1s]
Define a class to overload the method display() as follows:
void display(): To print the following format using nested loop.
12121
12121
12121
void display (int n, int m) : To print the quotient of the division of m and n if
mis greater than n otherwise print the sum of twice n and thrice m.
double display (double a, double b, double ¢) ~ to print the value of z where
z=pxq [Understanding /
Application]
od qrzatb+e
‘725 861 — SPECIMEN 12 of 2ICSE 2025 - SPECIMEN PAPER
DRAFT MARKING SCHEME —- COMPUTER APPLICATIONS
‘Question 1 (20)
@ |) Two Dimensional array with 4 rows and 5 columns
(ii) | (©) _ Platform Independent
Gi) [@ 2bytes
(iv) |) %
[© static
w [@ 40
(il) | © replace(char, char)
(will) |). supports floating point constants
@ |® 130
[© for Gintie 1530552)
[© 49-100
(ii) | (6) boolean compute (int a, int b)
Gai) [(@_retum
(iv) [© false
Go) (© Character.toUpperCase( char )
(vi) (@) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation
of Assertion (A)
Gil) [@ Both A and C
(vill) [(@)_ slength
(xix) |) GB) 4) (0) @)
(Go) | (©) Assertion (A) is true and Reason (R) is false
‘Question 2
oO if (code == ‘g’ || code == “G") PI
System. out printin(*GREEN”);
(ii) a=4,b=6 2]
Gi) __| Statement with error - boolean x=true ; To get the required output - int x= 1; 2
T25 861 - SPECIMEN 1of7a
(i) | Math.cbrt(x) + Math.sqnQ) PI
(@)__ | Loop is executed two times (2)
20
2
@i) |@ tue 2]
() -1
(Win |X b i}
(ili) _| Syntax ervor, double y = Double parseDouble(x) 2
(ix) __| Default constructor, Parameterized Constructor 2
@) | @) x{2)(0) PR]
(b) 17 (9+8)
Question 3
import java.util.*; {15}
class bank
{
double p.n,r.a;
‘Scanner ob = new Scanner(System.in);
void accept()
t
System. out printin("Enter principal”);
prob.nextDouble();
System.out.printin("Enter number of years");
n=ob.nextDouble();
3
void calculate()
t
25 861 - SPECIMEN 2of7if{n—=0.5)
9;
else
iffn>0.58&n>=1)
10;
else
if(>1&&n<-3)
=;
a=p*Math.pow(1+1/100,n);
}
void display)
{
System.out printin("Principal’+"\t"-+"Rate"+"\t"+"Time"+"\t"+"Amount");
System.out printin(pt"\t"#r+"\t"n+"\et"ta);
i
void main)
di
bank b= new bank();
b.accept();
b.calculateQ);
badisplay();
i
Question 4
class binary
{
double x[J= {5.6, 11.5, 20.8, 35.4, 43.1, 52.4, 66.6, 78.9, 80.0, 95.5};
double n;
binary(double z)
void search()
t
int 0, I =x.ength,m;
while(<=1)
t
(15)
T25 861 - SPECIMEN
30f7mE;
ifftm]==n)
{
System.out println( "Search Successful");
System.exit(0);
}
iffoc{m]n)
}
System.out.printin("Search Unsuccessful");
Question 5
class convert
t
String s;
convert (String 2)
{
=z;
i
void convert()
if
inti,
length(;char ch; String ns";
for(i-0;i=0)
ns=ns#(char)(ch+1);
else
ns=ns+(char)(ch-1);
}
else
ns=nstch;
}
Us]
‘T25 861 - SPECIMEN
40f7System. out print(ns);
}
}
Question 6
class sumrow
{
int x{]Q=new int{4][4];
sumrow(int z[]{])
{
x;
}
void calculate()
{
intr, ¢, s=0;
for(r=0;r<4sr++)
{
for(e=0;e<4je++)
t
s-stx{r][e};
3
System.out println("sum of row="+r+"="+s);
s=0;
}
}
}
(15)
Question 7
lass superspy
{
intn;
superspy(int x)
{
1x5
3
boolean superspy()
{
[1s]
‘125 861 - SPECIMEN
Sof7int d,s=0,c=0;
while(n>0)
{
d-n%10;
s=std;
chy
m=n/10;
if(s=c)
retum true;
else
retum false;
Question 8
class overload 03]
{
void display)
{
intr;
for(=Lir<=3:r++)
{
for(o=1je<=S;e++)
{
if(C%2==0)
System.out.print(2);
else
System.out.print(1);
}
System.out printing;
}
void display(int m, int n)
{
if(m>n)
System.out printin(m/n);
‘725 861 - SPECIMEN 6 0f7alse
System.out printIn(2*n+3*m);
3
void display(double a,double b, double c)
{
double 2, p, 43
pHatbyle;
qratbte;
zpra
System.out printIn(z);
‘T25 861 - SPECIMEN Tof7