0% found this document useful (0 votes)
10 views4 pages

CTA Prep QP

Computer paper class 10 icse

Uploaded by

Future Gaming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download as pdf
0% found this document useful (0 votes)
10 views4 pages

CTA Prep QP

Computer paper class 10 icse

Uploaded by

Future Gaming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download as pdf
Download as pdf
You are on page 1/ 4
CLASS: X ICSE SUBJECT: COMPUTER APP TIME: 2 hrs DATE: 20-01-2023 MARKS Total no. of questions: 08 No. of "Answers to this paper must be written on the paper provided separately You will not be allowed to write answer for the first 15 minutes ‘This timne 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 the questions or part of questions are given in brackets [] SECTION A (40 Marks) Attempt all questions from this Section Question 1 [20] Choose the correct answer and write the correct option:- (i) Method Overloading implements . (a) Data Encapsulation (b) Data Abstraction (¢) Inheritance (d) Polymorphism (ii) Which of the following is a reserved word in java? (a) int (b) Void (¢) Static (d) all of the above (iii) Operator that works on single operand is__ @* <= © +H @&& (iv) Which of the following is a composite datatype? (a) int af]-new int{100]; (b) int x; (c) Employee obj=new Employee(); (a) both (a) and (c) (¥) Math.ceil (Math.abs (-10.5)) returns {@) 11 (b) 11.0 (6) -11.0 (d) 10.0 (vi) Which of the following is an alternative for the given nested if statement? if (a%2==0) iffa%4—=0) Systemn.out.println ("Divisible by 2"); (2) iffa%4—=0 || a%2==0) System.out.printin ("Divisible by 2"); (b) if(@%2=0) System.out.printn ("Divisible by 2"); if(e%4—=0) Systera.out.println ("Divisible by 4"); (c) if(a%2=0 && a%4—=0) System.out.println ("Divisible by 2"); (@) if(2%2—=0) System.out.printin ("Divisible by 2"); else System.out.println ("Divisible by 4"); (vii) Which of the following is used to select one alternative statement out of two? (a) switch (b) nested if (c) if (a) ifelse (viii) Size of constant 12.5is__- (a) | byte (b) 8 bytes (c) 4 bytes (d) 2 bytes Page | of @ scanned with OKEN Scanner (ix) Which of the following is called infinite loop? (a) while (true) System.out printin ("Printin (b) for (int ++) System.out.printIn ("Printing....") (c) for (int i=100;i>0;i=i/10) System.out.printIn ("Printing. . (d) none @) Complete the following code to produce the output given below:- @ @@ @@e @@e¢e@ for (int ti ‘System.out.println (); } @j=4 O)j<-3 © j

You might also like