Formatting page ...
COMPUTER APPLICATIONS (Theory) (Two Hours) 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 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 questions or part of questions are given in brackets[]. Section A (40 Marks) Attempt all questions Question 1 a) What is the output of the following code snippet? [2] char ch1 = # , ch2= 8 ; System.out.println(Character.isDigit(ch1)); System.out.println(Character.isDigit(ch2)); System.out.println(Character.isLetter(ch1)); System.out.println(Character.isLetter(ch2)); b) What will be the output of the following statements when executed one after other? char a[]={ J , A , V , A }; int b=1; System.out.println(a[++b]); System.out.println(a[b]++); [2] c) Give the output of the following: String st1= Computer Knowledge , st2= Computer Applications ; System.out.println(st1.substring(0,9).concat(st2.substring(10))); System.out.println(st1.lastIndexOf( e )); [2] d) i) Name the keyword that makes the variable constant in a program. ii) Name the keyword that makes the system to report an error. [2] e) Differentiate between equals() and equalsIgnoreCase() [2] 1 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-II
|