Formatting page ...
I Pre Board Exam 03/12/2019 Computer Applications Class: X Time: 2 hrs Marks: 100 Answers 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 parts of questions are given in brackets[]. SECTION A (40 Marks) Attempt all questions Question 1. 1] Differentiate between autoboxing and unboxing. 2] Explain the purpose of using a new keyword in a Java program. 3] Rewrite the following loop using for loop: while (true) System.out.print("*"); 4] Mention the types of access specifiers. 5] What is constructor overloading? Question 2. 1] Find and correct the errors in the following program segment. int No[10] = new int[]; for (int i=0; i<=10; i++) no[i] = i; 2] Write the prototype of a function search which takes two arguments a string and a character and returns an integer value. 3] What is the use of void keyword? 4] What is the difference between a constructor and a member function of a class? 5] What is the difference between a static member function and a member function which is not static? Question 3. 1] State the number of bytes and bits occupied by a character array of 10 elements. [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2]
|