Formatting page ...
PAWAR PUBLIC SCHOOL, CHANDIVALI FIRST PRELIMINARY EXAMINATION (2022 2023) SUBJECT: COMPUTER APPLICATIONS GRADE: 10 MARKS: 100 DATE: 16.11.2022 TIME: 2 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 question or parts of questions are given in brackets []. This Paper consists of 6 printed sides -------------------------------------------------------------------------------------------------------Section A (Attempt all question from this Section) Question 1 Choose the correct answer and write the correct option. [20] (i) Which of the following keywords is used to create an instance of a class? (a) public (b) static (c) void (d) new (ii) Which of the following keyword is used as an access specifier? (a) new (b) public (c) class (d) void (iii) In case you need to give a proper message (prompt string) before taking an input from the user, which would be the most preferable method? (a) Parameterised input (b) Initialisation (c) Scanner input (d) Declaration (iv) Which one of the following methods will return a value between 0 and 1? (a) Math.pow() (b) Math.abs() (c) Math.min() (d) Math.random() (v) Which one of the following types of error will give the following code? for(int i = 1; i>10; i++) (a) Syntax (b) Runtime (c) Logical (d) System (vi) Which of the following is an example of prefix decrement operator? (a) i + + (b) a - (c) - - a (d) + + a What is the name given to a memory location called in Java? (a) Variable (b) Constant (c) Data Type (d) Constructors In logical operators, which operator has the highest precedence? (a) && (b) || (c) >> (d) ! If int n[ ] = {1, 2, 3, 5, 7, 9, 13, 16}; what will be the value of x ? x = Math.pow(n[4], n[2]); (a) 343.0 (b) 25.0 (c) 343 (d) 8.0 (vii) (viii) (ix) 2
|