Formatting page ...
PRE-BOARD EXAMINATION CLASS X SESSION 2021-22 COMPUTER APPLICATIONS Maximum Marks: 50 Time allowed: One and half hours Answer to this paper must be written on the paper provided separately. You will not be allowed to write in first 10 minutes. This time is to be spent in reading the question paper. The time given at the head of the question paper is the time allotted for writing the answers. Attempt all the questions from Section A and any 4 questions from Section B. The intended marks for the questions or part of the questions are given in the bracket [ ]. SECTION A (Attempt all questions) Question 1 Choose the correct answer for the following questions from the given options. (Do not copy the questions. Write only the correct answer) (i) Which of this method convert string value to primitive float type? a) String.toFloat( ); b) Float.toFloat( ); c) String.parseFloat( ); d) Float.parseFloat( ); (ii) Identify the value of n and ch from the code segment: char c = B ; float n = c+1; char ch = (char) n; a) n =66 ch=B b) Syntax error due to data type mismatch c) n = 66 ch = garbage value due to improper type conversion d) no output due to logical error (iii) Predict the output for n and chr from the code segment: char ch = A ; char chr = Character.LowerCase(ch+1); int n = (int) chr 32; a) 34 b b) 34 B c) 66 b d) 66 B PRELIMS THIS PAPER COMPRISES OF 3 PRINTED PAGES & 1 BLANK PAGE [10] TURN OVER
|