Formatting page ...
Model Paper - 1 Class: X - ICSE SUBJECT: Computer Application Maximum Marks: 100 Duration: 2 hour 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. 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 [10] a) Write java expression: ut + at2 [2] b) Give any four tokens. [2] c) What are library classes ? Give an example. [2] d) Give the output of the following java code: int i = 0; for (i = 10; i>1; i--) if (i%5 == 0) System.out.println( i + is divisible by 5 ); e) State two non-numeric primitive data type. Question 2 a) Give the value of x and y of the following: [2] [10] [2] String St1 = Good ; String St2 = World Matters ; String x = St2.substring (5).replace ( t , n ); String y = St1.concat (x); b) Rewrite the following code using ternary operator. int m = 500; if (m<1000) n = 1000*0.05; else n = 1000*0.10 [2] c) What is the difference between == and equalsIgnoreCase() [2] d) What is function prototype? Explain. [2]
|