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 default constructor? Give example. b) Differentiate between implicit conversion and explicit conversion. c) public class sales { int invoice=1234; static pro_code; public ststic void main() { sales s= new sales(); int price=1000; s.show(price); } void show(int pr) { System.out.println(invoice); System.out.println(pro_code); System.out.println(pr); } } Name the following from the above code: (i) class variable (ii) local variable (iii) instance variable (iv) method variable d) i) Name the keyword that refers to the currently invoking object. ii) Name the keyword that makes the member accessible from all classes inside or outside the package. e) Write the java expression for z= (5 2 + 3 2 ) + 10 1 ICSE (Grade : X) | COMPUTER APPLICATIONS (Theory) | Pre Board Exam-III [2] [2] [2] [2] [2]
|