Formatting page ...
NAZARETH SCHOOL FIRST TERM EXAMINATION-October,2017 CLASS: X Computer Application (Theory) TOTAL MARKS: 100 TIME: 2 HOURS Question 1 1. Name any two OOP s principles. [2] 2. What are identifiers? [2] 3. Name the primitive data type in Java that is: i) a 64 bit integer and is used when you need a range of values wider than those provided by int. [1] ii)a single 16-bit Unicode character whose default value is \u0000 . [1] 4. What are the types of casting shown by the following examples? [2] i) double x= 15.2; ii) int x=12; int y =(int ) x; long y=x; 5. What is the difference between break and continue statement? [2] Question 2 1. Convert the following do-while loop into for loop [2] int i=1; int d=5; do{ d= d*2; System.out.println(d); i++; } while (i<=5); 2. Identify the following as valid variable names .State the reason [2] i) _345 ii)c*345 iii) name$ iv) student
|