Formatting page ...
HIRANANDANI FOUNDATION SCH00L, THANE Second Preliminary Assessment- January 2024 Subject: Computer Applications Marks: 100 Time: 2 Hrs. Std. X Date: 18/O1/2024 to this paper must be written on the paper provided separately. You will NOT be allowed Answer towrite during the first 10 minutes. This time is to be spent for reading the question paper. The time given at the head of the paper is the time allowed for writing the answers. This paper is divided in two sections, Attempt all questions from Section A and any fourquestions from Section B. The intended marks for questions or parts of questionsare given in brackets[) This paper consists of 5pages. SECTION-A (Attempt all questions from this Section.) [201 Question 1: Choose the correct answer and write the correct option. CLASS public instance Outside Code variables private instance variables public methods private methods i) Name the concept of object oriented programming depicted in the above picture. (c) polymorphism (a) data hiding (b) encapsulation (d) inheritance ) What is the output of the following code? String nl = "46", n2 ="64": int total =Integer.parselnt(nl) + Integer. parseInt(n2); System.out.printin(total); (a) 110.0 (b) 110 (c) Error (d) Out of memory ii) Amethod which does not modify the value of variables is termed as (c) primitive method (a) impure method (b) pure method (d) user defined method iv) How many times the following do-while loop will be executed? int a, i; i-0; a=1; do { it+; a +t; }while(a <=5); System.out.printin("i =" +i+"a=" +a); (a) 2 times (b) 6 times (c) 4 times (d) 5 times
|