[go: up one dir, main page]

0% found this document useful (0 votes)
22 views5 pages

19348CompXSet1 (1) - Decrypted

Uploaded by

Krishna Kanodia
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)
22 views5 pages

19348CompXSet1 (1) - Decrypted

Uploaded by

Krishna Kanodia
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/ 5

http://www.icseguess.

com/

Sample Paper – 2013


Class – X

Subject – COMPUTER APPLICATIONS


(Theory)
(Two hours)
____________________________________________________________________
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 (2 marks each)

(a) Define a class. How is it related to an object, explain?

(b) What is a compound statement, provide an example?

(c) Explain the concept of try-catch-finally with a suitable example. What is the use of ‘finally’
keyword in respect of that

(d) State and explain the multiple branch selection statement provided by Java.

(e) Given numbers 23, 45, -33, 533, 100. Illustrate a binary search to locate the number 500.

www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com |
www.niosguess.com | www.iitguess.com
http://www.icseguess.com/

Question 2

(a) What is a package? Name any 2 packages of java those are yet not used by you. (2 marks)

(b) What is the value of the following expressions( or ERROR)? (1 mark each)

i) “DISARIHALDIA”.substring(4).indexOf(‘A’);

ii) “ Correct”.charAt(1).compareTo(“Option”.charAt(0));

(c) Unlike other languages, why does Java need a compiler as well as an interpreter? (2
marks)

(d) What is meant by an infinite loop? Give an example. (2 marks)

(ab)3
(e) Write a statement in Java for 4
(2 marks)
ab

Question 3 Differentiate between the following pairs: (2 marks each)

(a) coercion and casting

(b) String and StringBuffer classes

(c) Byte Oriented and Character Oriented Streams

(d) if-else and switch

(e) throw and throws

Question 4 (1 mark each)

(a) What is the requisite data type to store the character * ?

(b) Which keyword is used to raise an exception?

(c) If a =12, b =11 and a+= a++ – (--a * --b). Find the values of a and b.

(d) State the three types of errors.


www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com |
www.niosguess.com | www.iitguess.com
http://www.icseguess.com/

(e) What does System.in.read() return?

(f) Given String str = “60”; write the statement to convert it to an integer data type.

(g) State any two IOException classes.

(h) Name the method used to print random numbers between 0 and 1.

(i) State any two non-numeric primitive data type.

(j) How many iterations are involved while bubble sorting an array of 5 integers?

SECTION B (60 Marks)


Attempt any four questions from this Section
.
The answers in this Section should consist of the Programs in either Blue J environment
or any program environment with Java as the base. Each program should be written
using Variable descriptions/Mnemonic Codes such that the logic of the program is
clearly depicted.
Flow-Charts and Algorithms are not required.

Question 4
Write a program to accept any string and sort the words in ascending order. [15]
Input :- Annual Cultural Program in Disari
Output :- Annual Cultural Disari in Program

Question 5
Input a number from keyboard and check whether it is DISARIUM or not. A number will be
called DISARIUM if sum of its digits powered with their respective position is equal with the
number itself. [15]
Sample Input: 135
Output : It is a DISARIUM
(Workings 11+32+52 = 135, some other DISARIUM are 89, 175, 518 etc)

www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com |
www.niosguess.com | www.iitguess.com
http://www.icseguess.com/

Question 6
WAP to input an array that contains positive, negetive and zero. Swap the positive element at
the beginning of the array followed by negetive without changing their sequence

e.g: input 3, 5, -5, 7, 0, -2, -1, 4, 8, -3

Output : 3, 5, 7, 4, 8, 0, -5, -2, -1, -3 [15]

Question 7
Input a number and find nearest prime number of the same. [15]
Sample Input: 25
Sample Output: Nearest Prime number is 23

Question 8
Input a sentence (sen), a word to search (srchwrd) and another word to replace (repwrd). Find
the occurrence of search keyword within the given string, finally display the sentence after
replacing with the replace keyword. Also display its occurrences in number. [15]
Sample Input: Disari Public College is located in Haldia. It is co-ed residential cum day boarding
College.
Search Keyword: College
Replace Keyword: School
Sample Output : Disari Public School is located in Haldia. It is co-ed residential cum day
boarding School.

Question 9
Input a sentence and print the same after converting every alternate character to uppercase and immediate next
character in lowercase [15]

e.g1 : Input 1) Nasim Akhtar

Output: NaSiM aKhTeR

www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com |
www.niosguess.com | www.iitguess.com
http://www.icseguess.com/

Input 2) Supriyo Bakshi

Output: SuPrIyO bAkShI

Paper Submitted By:

Name Susmita chakravarty

Email susmitamarch24@gmail.com

www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com |
www.niosguess.com | www.iitguess.com

You might also like