Formatting page ...
ST. CLARE S SCHOOL, LOKAI PRE-BOARD EXAMINATION 2018-2019 COMPUTER APPLICATIONS (Theory) (two hours) Answer to this paper must be wrriten on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent reading the question paper. The time given at the head of this paper is the time allowed for writing the answers. This paper is devided into two Sections. Attempt all questions from Section A and any four questions from Section B. The intended marks for questions are given in brackets[ ]. SECTION- A (40 Marks) Attempt all questions Question 1 (a) (b) (c) (d) (e) What is byte code? What is JVM? [2] Define with an example: 1) syntax error 2) logical error? [2] Define an impure function,giving an example. [2] What is a constructor?What does it do?Explain in brief. [2] Write an equivalent java statement for the following: F=sin 2x+cos2x Question 2 (a) (b) (c) (d) What is the return type of the following functions 1) compareTo() 2) trim() [2] What are preconditions for binary search? [2] What is method overloading? Give an example. [2] Rewrite the following code snippet making necessary correction(s), [1] If any error exists. Float a=3.7+5.8 Char c=66; System.out.println(a+ - +c);
|