Formatting page ...
PRE-BOARD EXAMINATION II 2016-17 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. This time given at the head of this paper is the time allowed for writing the answers. ____________________________________________________________________________________________ This paper is divided into 2 sections. Attempt all the questions from section A and any 4 questions from section B The intended marks for questions or parts of the questions are given in brackets [ ]. __________________________________________________________________________ SECTION A (40 Marks) Attempt all the questions Question 1. (a) What is polymorphism? (b) Write a function to round off any fractional number? Give an examples. (c) What is an infinite loop? How does it differs from fall through statement? (d) What will be the result of following if m = 13, n = 1, p (i) p = 4 + ++m*4 n++ * (2*7) (ii) p = (n- -)% 4 + (m- -)%2+(6+5) (e) Write the java statement to find largest of 3 numbers using conditional operator. [2] [2] [2] [2] [2] Question 2. (a) What is array? How does it differ from string? (b) Explain the role continue statement in java using example? (c) Give one similarities and one difference between while & do while loop? (d) Differentiate between PUBLIC and PRIVATE visibility label. (e) Give one example each to elaborate syntax error and logical error? [2] [2] [2] [2] [2] Question 3. (a) State the difference between entry controlled loop and exit controlled loop. (b) What is the role of access specifier? (c) Why Java is platform independent? (d) Write the name of two jump statements with example? (e) Write one difference between constructor overloading and method overloading [2] [2] [2] [2] [2] This paper consist of 4 printed pages TURN OVER
|