Tuesday, April 19, 2022

COMPUTER PRE BOARD QUESTION PAPER

 1 ST PRE BOARD EXAMINATION 2021-22

SUBJECT – Computer Applications 
CLASS – X 
===========================================================

Answers to this paper must be written on paper provided separately. 
You will not be allowed to write during the first 10 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. 
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 the brackets. [ ] 
Select the correct option for each of the following questions. 
==================================================================

Section – A [10 Marks] 
(Attempt all the questions) 


Question (1) 

Choose the correct answers to the questions from the given options. (Do not copy the question, Write the correct answer only.)                                                                                                    [10] 

(i) The value returned by Integer.parseInt(“-321”) is……….. 
     (a) -321 (b) 321.0 (c) 321 (d) “321” 

(ii) In which package is the wrapper class integer available? 
      (a) java.io (b) java.awt (c) java.util (d) java.lang 

(iii) Which of the following is a primitive data type ? 
       (a) int (b) float (c) char (d) All of these 

(iv) An instance variable……………. 
      (a) Needs an instance to access it 
      (b) Does not need an instance to access it 
      (c) Can be accessed via the class name
      (d) Is declared with static keyword 

(v) The class which get inherited is knows as ……………. 
      (a) Parent class (b) Super class (c) Base class (d) All of these 

(vi) Which of the following statements is true? 
      (a) Binary search is less efficient than the sequential search 
      (b) Binary search is less efficient than the linear search 
      (c) Binary search is more efficient than the sequential search 
      (d) Binary search is as efficient as the sequential search 

(vii) Which element is num[9] of the array num ? 
        (a) 8 th (b) 9 th (c) 10th (d) 11th 

(viii) The trim() method of the string class removes ……………….. 
        (a) Leading spaces only 
        (b) Spaces in between words 
        (c) Trailing spaces only 
        (d) Leading and trailing spaces 

(ix) The index of string………………… 
      (a) Range from 0 to the length-1 of the string 
      (b) Range from 0 to the length of the string 
      (c) Range from 1 to the length of the string 
      (d) Range from 1 to the length-1of the string 

(x) The return type of the equals() method is………. 
      (a) int (b) char (c) boolean (d) void 

SECTION B [40 Marks] 
(Attempt any four questions.) 


Question (2)

 Define a class to declare an integer array of size n and accept the elements into the array. Search for an element input by the user using binary search technique, display the element if it is found, otherwise display the message “NO Such Element”.                                                                                            [10] 

Question (3) 

Write a program to accept 20 integer numbers in a single dimensional array. Find and display the following: [10] 
(a) Number of even numbers
(b) Number of odd numbers 
(c) Number of multiples of 4.

Question (4) 

Write a program to accept „n‟ values in a single dimensional array and display the sum of all such members which are divisible by both 2 and 3. [10] 


Question (5) 

Write a program to accept a string and display: [10] 
(a) The number of lower case characters 
(b) The number of upper case characters 
(c) The number of special characters 
(d) The number of digits present in the string. 

Question (6) 

Define a class to accept a string, convert it into uppercase and check whether the string is a palindrome or not. A palindrome is a word which reads the same backward as forward. [10] 
For example RADAR, CIVIC, LEVEL 


Question (7) 

Write a program to accept a string and change the case of each letter of the string. Display the new string. 
For example
Input= WelComE TO School 
Output =wELcOMe to sCHOOL





No comments:

Post a Comment