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

CMS PRE-BOARD Question paper Class 10th Computer

Pre board question class 10 icse computer

Uploaded by

jaweda1969
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
0% found this document useful (0 votes)
222 views

CMS PRE-BOARD Question paper Class 10th Computer

Pre board question class 10 icse computer

Uploaded by

jaweda1969
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
You are on page 1/ 9
- meu A- @ THE FIRST PRE-BOARD EXAMINATION Cl COMPUTER APPLICATIONS Time: Two hours Maximum marks: 100 Trseryctions ; * You will not be allowed t0 write during the first 15 minutes, This time is to be spent in reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. Please do not write anything on the question paper except your name and roll number. The intended marks for questions or parts of questions are given in brackets [ ]. Autempt all questions from Section A and any four questions from Section B. All working including rough work should be done on the same sheet as the rest of the answer. BOOne SECTION A [40 marks] (Attempt all questions from this section.) Question 1 Choose the correct answers to the questions from the given options. (Do not copy the questions, write the correct answer only.) (20] w@ Vehicles Bm 6 = ‘Name the feature of Java depicted in the above picture: (a) Data hiding (b) Abstraction 4e¥ Inheritance (d) Class Gi) When converting a double data type to an int, which type of conversion is required? (a) Implicit NOY Explicit (c) Inheritance (d) double value cannot be converted to int (iii) Which of the following is NOT a method of String class? (a) length0) (b) concat() (©) trim) F ser This paper consists of Eight printed pages. Turn over (iv) Arrange the following reference types (defined by user) in the descending order of number of bytes occupied: (i) byte abef15] (ii) int jkI[3] [2] 2, ii) Moat parts] 16 (a) (i), (ii), (iii) (b) (i), Gi), (ii) LO) Gd, Gid, ( (d) Git), (), (ii) () Which of the following is the correct way to create an object of the class “citySchoo!”? (a) class citySchool = new citySchool); _(6Y citySchool aa = new citySchool(); (©) class obj = new citySchool(); (d) citySchoo! bb = class citySchool; (vi) When a= 3 then the result of the expression a *= at++ % a will be: > a<(Gr+ Ka ay 1 0) 6 347 4 % 3) ©) 9 @2 7% > (vii) Which of the following will generate syntax error(s), which will generate runtime error(s) and which will generate logical error(s); 'C Part I inta=3,b=0; System.out.printIn(“square of 3 =” + a+); Part IL inta=3,b System.out printIn(“Square of 3” = Math.pow(a, 2)); Part inta=3,b System.out.printIn(“Remainder when a is divided by b is =" + a % b); (a) Part I syntax error Part IT runtime error Part III logical error _J) Part 1 logical error Part II syntax error Part III runtime error (c) PartI. runtime error Part II logical error Part III syntax error Sey Part logical error Part IT runtime error Part III syntax error (os+% a) (3% W (viii) What is the data type of the value retumed by method Math.abs()?: (b) string (a) int {@)_ same as the data type of the arguments (c) double stIndexOf(ch); (i) bootean an tr.indexOfch) = If for the above statement variable ans gets value truc; then which of the following conclusions can be drawn? (i)_ the given character is present only once in the string (ii) the given character is not present in the string resent more than once in the string (a) either (i) or (ii) (by either (ii) or (iii) (@) variable ans will never get true value OX either (i) or Gi) (iii) the given character is p) (x) What will the following sequence of statements print? String abe = “Lucknow India”; System.out.printIn(abe.trim().lenght()); (a) 12 @) 13 © 15 (d) LUCKNOW CITY ) Assertion (A): Objects are the examples of reference data type Reason (R): Objects store the values of the instance variables (a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (b) Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A). (©) Assertion (A) is true but Reason (R) is false. (d) Assertion (A) is false but Reason (R) is true. (xii) What is the length of the array str? String str[] = {“abc”, “def”, “ghi”}; (a) 2 4) 3 @ 9 (CO (xiii) In which of the sorting techniques, adjacent elements of the array are compared? (a) linear sort technique (b) binary sort technique (of bubble sort technique (d) selection sort technique (3) Turn aver i . 2 (xiv) Which of the following methods is used to extract a part ofa string? (a) trim0 (b) extract() (ey substring) (d)_subpart() (xv) Which of the following is not an access specifier? (a)_ public (of void (c) protected (d) private (xvi) A student has written the following statement to store the ASCII value in variable x of the character present in char variable ch: int x = Math.ascii(ch); which is not correct. What will be the correct statement(s)? A. int x= ch; B/int x = (int) ch; C. int x = ascii(ch); (a) only A (pS only B (c) both A and C (d) both A and B (xvii) Which of the following is the correct statement to call a method print() whose prototype is as follows: void print (byte x, char y) (a) abe = print(300, ‘A’); (b) print(‘A’, -300); (©) print(30.0, ‘\n’); va) print((byte) 30, “\n’); (xviii) Assertion (A): Loop allows for repeated execution of a block of code Reason (R): Loop provides a way to execute a specific block of code multiple times, saving time and effort compared to writing out the same code many times. \@f Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). 90) Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct, explanation of Assertion (A). (c) Assertion (A) is true but Reason (R) is false. (@) Assertion (A) is false but Reason (R) is true. (4) xix) Manisha wanted to (ix) M ish wanted fo count the number of digits of a positiv variable n without using a loop, Which of the following statemean waite for performing it? ne ‘Statements will be correct (a) String.value engl o : ow length, (b) Integer. parsetnt(n).length() leng (all the above xx) What will be the (xx) wn " wt N a output of the Java program part given below? switch(num) { 5 case 20: System.out print(“Twenty ”); break; } (a) Twenty {c}-Forty Sixty (@) will give compile time error Question 2 (i) Name the following: (a) A Character class method that checks whether a character is an alphabet or a digit. (b) A Math class method that requires two arguments. 22] (ii) Write the output of the following program part: String strl = “prime”, str2 = “sumprime”, chk = “prime” System.outprintin(str1 + str2,substring (3) + chk); (2) (iii) What will be printed by the following. ode: ay a char ch =X"; 63-47 Cie 49 ¢ : / Cis too intn=(int)ch+10; 13 é char chr=(char)n; 3 4, System.out printin((int) n + “\t" + chr); rs ¢ 2) (jv) What will be the value of variable b after executing the following statement when the value of a is 10 and that of b is 2 initially? b-=—b-- + tHata-— 2] () Write the Java expression for the following mathematical ooresson: aa 21 or ‘oo pe(-b—- + Ta 9877 ken a-Cat lt wD ee ae nk? ee a-( mo Turn over -12 CO) Gictheoumurenie een ot yf System.outprintins * 6% 5 * 8/2); (Wii) Give the Output of the following program segment: int art][] = {{2, 4, 12},43, 6, 1}, is for(i = 0; i

You might also like