Formatting page ...
ICSE Java - Complete Reference PRE BOARD II EXAMINATION SUBJECT: Computer Applications Grade: X Date : Max. Marks: 100 Duration: 2 hour Answer 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 this 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. You are to answer all questions from Section A, and any four questions from Section B. The intended marks for questions or parts of questions are given in brackets[ ]. Section - A (40 Marks) Answer all the questions Question 1: a) Explain how Java is independent to any platform. [2] b) What are primitive data types? Give one example. [2] c) What is method overloading? Which concept of OOP is this? [2] d) Say whether the following are primitive/composite data types. [2] (i) class (ii) double (iii) array (iii) boolean e) Rewrite the following java statements using ternary operator [2] int x; String Str; if (x > 99999) Str = "Weldone!"; else Str = "Try more"; Question 2: a) What is type casting? [2]
|