Formatting page ...
COMPUTER APPLICATIONS SPECIMEN PAPER-1 Time:2hrs F.M-100 SECTION-A(40 Marks) Attempt all questions from this section Question 1: [2x5=10] a) What is an exception? Some Keywords related to exception? b) c) d) e) Differentiate: Control Statement and Control Variable. What are object datatypes ? Give examples. What are class variables? How are they created? What are the special characters used is java? What is its purpose? Question 2: [2x5=10] a) b) c) d) e) Array creation is a two staged process. Explain with examples. What is wrapper class? What is its purpose? What is the use of .obj file in java? Differentiate: throw & throws. What makes the main() unique? What if it was eliminated? Question 3: [20] a) Write Java statements for the following: [2] i. To store section of a student through scanner class. ii. Create a variable and store take the phone number of a student as input. b) Write the default value of: [3] i. String ii. Character iii. Local variable c) Write the end datatype and resultant of: [4] i. S= Math.pow(2,6)% A+ A + B + C +Math.round(2.5); ii. K= Stewart.charAt(3)+Math.sqrt(625)+Odisha.substring(HappyIndia.indexOf(Bhubanes war.CharAt(Math.round(6.25)); d) Is there provision of any constructor if there is no user defined constructor in a program? Why? [2]
|