Formatting page ...
Computer Application/ Paper 5/Page 1 of 4 Computer Applications (2 hours) GRADE: X Max Marks: 100 Revision Paper 5 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. ____________________________________________________________ SECTION A (40 Marks) Attempt all questions Q. 1. 1. 2. 3. 4. 5. [10] Differentiate between Compiler and Interpreter. What is the difference between == and equals()? What is JVM? Explain its function. Differentiate between Constructor and method. Define a class. Give any two examples of class. Q. 2. 1. 2. 3. 4. [10] Q. 3. Give the output of the following 1. String str= Computer Application ; for(i=0;i<str.length();i++) { char ch=str.charAt(i); if(ch!='a'&&ch!='e'&&ch!='i'&&ch!='o'&&ch!='u') fstr+=ch; } System.out.println(fstr); } [20] What do you mean by precedence of operator? Differentiate between entry controlled loop and exit controlled loop. Explain polymorphism with an example. What will the result of the expression if X=5 X+= X / X + ++X X-- * X 5. Write the Java Expression for the following S= X4 +Y-5 / (2Z) * 5 This paper consists of 4 printed sides.
|