You are on page 1of 5

http://www.icseguess.

co
m/
Sample Paper 2013
Class X
Subject COMPUTER APPLICATIONS
(Two Hours)
Answers to this paper must be written on the paper provided separately.
You will not be allowed to write during the first 1 minutes.
!his time is to be spent in reading the "uestion paper.
!he time given at the head of this paper is the time allowed for writing the answers.
This paper is divided into two sections.
You are to answer 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 "uestions.
#uestion 1.
a) Give the difference between the following [2+2]
i) = operator and = = operator
ii) / sign and % sign
b) Give the value of the variable tot after the following code is e!ecuted [2+2]
i) tot = "#$
ctr = %$
tot += &++ctr)$
ii) tot = "#$
ctr = %$
tot += &ctr++)$
c) 'dentif( the errors in the following codes ) [2]
i) int new = %$
ii) char c = *ab+$
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.co
m/
#uestion $,
a) -rite two differences between !it contro""ed "oop and ntr# contro""ed "oop. [2.%]
b) -hat do (ou /ean b( a co/pound state/ent 0 Give an e!a/ple ,
c) 1!plain the purpose of default state/ent used in 2ava ,
d) 3ind the 4utput of the following )
while&true)
5
6=%$
7(ste/,out,print&6)$
6=6+"$
if &6="#)
brea8$
9
e) -hat do (ou /ean b( $a"" through 0
#uestion %,
Give the output of the following state/ents )
a) int ! = *:o/puter ;rogra//ing+,inde!4f&g)$ [2.%]
b) *;rogra//ing is fun+,sub7tring&<=ath,pow&2>))$
c) =ath,floor & ">>,??)
d) =ath,abs &@<>A?,>%)
e) 7(ste/,out,println&*:4=;BC1D+,eEual'gnore:ase&*co/puter+))
#uestion &.
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.co
m/
a) Fa/e and Gefine an( two 44;s principles , [2.%]
b) =ention two different st(les of e!pressing a co//ent in a progra/,
c) -hich ele/ent is 'os(1)* of the arra( 'os +
d) Gifferentiate between operator and e!pression ,
e) 'f 6=H and I=% then output the value of 6 J I after e!ecution are K
i, 6L=6@ @ + @ @I K I++ + ++6
ii, I = 6 ++ @ 6/I
SECTION-B (60 Marks)
Answer any four questions from this Section .
ach program shou"d be written in such a wa# that it c"ear"# depicts the "ogic of the prob"em.
This shou"d be achieved b# using mnemonics and comments in the program.
%ive the variab"e "ist used in the program. $"owcharts and a"gorithms not required .
#uestion (1*
3ibonacci series is a series of nu/bers in which each nu/ber is the su/ of two preceding nu/bers
the first two nu/bers being # and ", -rite a function ,-./( ) that ta8es a nu/ber as argu/ent and
generate the series that are not greater than the argu/ent , 1g, #""2<%A ,,,,,,,,,, Ca8e another
function 0A11( ) to call the above function 3'I4& ) and displa( the result ,

#uestion 2 (1*
-rite a /enu driven progra/ that accepts a string and do the following as per users choice )
i, :ount the total nu/ber of uppercase and lowercase characters,
ii, :ount no, of vowel present in the string,
#uestion 3 (1*
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.co
m/
6 cloth showroo/ has announced the following festival discounts on the purchase of ite/s based on
the total cost of the ite/s purchased)
Cotal :ost Giscount &in %)
Mess than Ds, 2### A%
Ds, 2##" to Ds, %### "%%
Ds, %##" to Ds, "### 2%%
6bove Ds, "### <#%
-rite a progra/ to input the total cost and to co/pute and displa( the a/ount to paid b( the
custo/er after availing the discount,
#uestion 3 (1*
-rite a progra/ to calculate and print the su/ of each of the following series)
7u/ &7) = !/2N + !/%N + !/AN + !/""N + ,,,, !/2# &Oalue of ! is to be entered b( the user,)
#uestion 4 (1*
Bse a constructor to accept the values abc of the Euadratic eEuation a!2+b!+c=#, ;rint whether the
roots are i/aginar( real or Pero, 6lso provide the value &s) of ! ,
#uestion 5 (1*
Gefine a class to enter a sentence and print its initials li8e below for/at ,
1g, Geepa8 =ahadev Dathore
4utput ) =r, G, =, Dathore
LLLLLLLL.est of 1uc6LLLLLLLL
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.co
m/
Paper set by :
Mr. Sujit Kumar Das
Email- sujrkl152003@yahoo.co.in
Contact no : !3"3!15"0
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