0% found this document useful (0 votes)
38 views4 pages

Computer Apllication

Uploaded by

shauryasahu2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
38 views4 pages

Computer Apllication

Uploaded by

shauryasahu2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
goralS! Wag Yor GEMS Modern Academy PRELIMINARY EXAMINATIONS,2016 COMPUTER APPLICATION 0 Duration : 2 Hours 1114/2016 Max. Marks: 100 Answer ALL questions in Section A and FOUR questions from Section B All working, including rough work must be on the same sheet as the rest of the answer. The intended marks for questions are given in { ] brackets SECTION A Answer all Questions. Give simple examples. Question 1 a. What is meant by Precedence of operators? 2] b Distinguish between Instance variables and Class variables (2) Why is a class known as a Composite data type? 12) . List two Relational operators in Java tt) e, Write the correct Java statement for itl (a+by* Va+b f. Explain the purpose of the continue statement (1) g State the total size in bytes of an array a[5] of short data type. tt} ‘Question 2 a. What is Polymorphism ? How is it implemented in Java? 12) b. Differentiate indexOf() and charAi() methods of the String class. 2) ¢. Differentiate between isUpperCase(char) and toUpperCase(char) (2 d. Name the keyword that is used tc resolve the conflict between the method parameter and the instance variables. 1 1. What is meant by constructor overloading? Give example. 2] g. int y=1900 1) b=((y % 4==0 && y % 100 !=0) || y % 400 ==0)71:0 What will be the value in b? What should be the data type of b declared as? Page 1of4 Question 3 a. State two differences between the “if” construct and the “switch” construct ia} 5. Give the output of the following code snippet. Show the dry run 2] int Al] = (3, -2, 0, 2, -1,7}; int k while(k

You might also like