0% found this document useful (0 votes)
41 views

PPSB Computer Prelim

1. The document is a past exam paper for Class X Computer Applications from Pawar Public School in Bhandup. It contains 7 questions testing concepts like wrapper classes, arrays, strings, and character operations. 2. Section A contains 10 multiple choice questions testing topics like wrapper classes, string methods, arrays. Section B contains 4 out of 6 computational questions involving programming concepts like arrays, strings, character operations. 3. The paper tests concepts like wrapper classes, string methods, arrays, character operations and basic programming problems involving these concepts. It aims to assess students' understanding of key Java programming concepts.

Uploaded by

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

PPSB Computer Prelim

1. The document is a past exam paper for Class X Computer Applications from Pawar Public School in Bhandup. It contains 7 questions testing concepts like wrapper classes, arrays, strings, and character operations. 2. Section A contains 10 multiple choice questions testing topics like wrapper classes, string methods, arrays. Section B contains 4 out of 6 computational questions involving programming concepts like arrays, strings, character operations. 3. The paper tests concepts like wrapper classes, string methods, arrays, character operations and basic programming problems involving these concepts. It aims to assess students' understanding of key Java programming concepts.

Uploaded by

Fathima Imran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PAWAR PUBLIC SCHOOL, BHANDUP

Class Subject Assessment Marks Date Duration No. of Printed


Pages
X Computer Prelim-2 50 10-02-22 1 ½ Hour 3
Applications

Answers to this Paper must be written on the 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 brackets [ ]
SECTION A (Attempt all 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 data type int is included in __________wrapper class.


a) Int
b) int
c) Integer
d) integer

(ii) State the value of x after the following is executed:


char x='Z';
y=Character.isLetter(x);
a) true
b) Z
c) x
d) false

(iii) The package that contains wrapper class is ____________


(a) java.util
(b) java.lang
(c) java.io
(d) java.awt

(iv) Give the output of the following string methods:


"Computer Applications".indexOf('p')+ "Computer Applications".lastIndexOf('p')
(a) 16
(b) 15
(c) 14
(d) 17
(v) A class member declared as ______________ can be accessed directly by all the classes
within the same package and the subclasses of its class even if the subclasses are in
different packages.
(a) private
(b) protected
(c) public
(d) final

(vi) The following statement :


int Rno[ ]= {20,27,38,40};
(a) Assign 20 to Rno[2]
(b) Assign 27 to Rno[2]
(c) Assign 38 to Rno[2]
(d) Assign 40 to Rno[2]

(vii) Which of the following function finds the size of an array?


(a) Array.length();
(b) Array.length;
(c) Array.len();
(d) Array.len;

(viii) valueOf() function converts:


(a) String to primitive type
(b) Primitive type to String
(c) Character to String
(d) String to Character

(ix) Give the output of the following code:


String s= "7";
int t =Integer.parseInt(s);
t=t+1000;
System.out.println(t);
(a) 7000
(b) 1007
(c) 10007
(d) 8000

(x) char data type belong to ________wrapper class.


(a) Char
(b) Character
(c) char
(d) character
SECTION B
(Attempt any four questions.)

Question 2 [10]
Write a program to accept the year of graduation from school as an integer value from the user.
Using the Binary Search technique on the sorted array of integers given below, output the
message ‘Record exists’ if the value input is located in the array. If not, output the message
Record does not exist”.
(1982, 1987, 1993. 1996, 1999, 2003, 2006, 2007, 2009, 2010)

Question 3 [10]
Define a class to declare a character array of size ten, accept the character into the array and
perform the following:
• Count the number of lowercase letters in the array and print.
• Count the number of digits in the array and print

Question 4 [10]
Write a program to store 10 numbers in a single dimensional array and find the sum of all the
even numbers and odd numbers present in it.

Question 5 [10]
Write a program to input a sentence. Find and display the following:
(i) Number of words present in the sentence
(ii) Number of letters present in the sentence
Assume that the sentence has neither include any digit nor a special character.

Question 6 [10]
Write a program to accept a sentence. Display the sentence in reversing order of its word.
Sample Input: Computer is Fun
Sample Output: Fun is Computer

Question 7 [10]
Define a class to accept and store 10 names into the array and print the names which start with
‘R’ or ‘r’.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy