[go: up one dir, main page]

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

solution class 9 (4)

Uploaded by

damonmeghaj
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 views6 pages

solution class 9 (4)

Uploaded by

damonmeghaj
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/ 6

elass-9

Mock Test Solukon.


Section A
&. a- ü) Hiqa Leved Languages
b it atanee
C-i) Jowa API
d- ü Abetsuacion

69. aConveion

(72) 8g Ca6a)1o
Cc2)% =(5/15)
C 3 8 o =C605)

)C42)e (27#)1
20005 =
2000 56 2000'56 E-3
O00
O00005E-2 0'O0ooS 0 0000005
100

Amt> 250000)
8Aa G* Amt/10o;
else Shane- (3*Amt)/100

b)Auiteh (codi)
2 casa. A
("Aceounl ut").
out fountn
Syseun
beak
Case c ' :
Cale '61':
System out. þunttn (" 6eade Iv")
bwak; ("Advisor")
Cane'F
puuintln
Systimout.
20 19 18 12 16 15 1413 1211 10 9 8 44 54321

Seeion-
+ 15+16 =52
&5a) 21
double

3
d Dy Run

ia uinti

A46656 A6456
F7E/%=_129%
1994/ 26
1296
129C
21
2L 3
36/ 6
3 3.6
1= O

No
Umpeut Tava-util Seannes,
clase Neon

main()
pulic &atie void

ScanenSyskm. in);
Seannes &c =new
puintbm"Endea numb );
Systm. cut
int n 2'sc.nxt IntO;
(nt d, nL, Sum =0,
ni= n¥ns
ushile(nl>o)
d - hl. 10;
Sum Sum+d
ni = ni/10,

, Sum ==n)
Systu Out puintn(n+" à a Neen nLumki;
el
Syskm. ouk. puntn (n t" s nota Neon numb")

VDT
Vuaki
dalate upexe
nt
int Co Sto
int
a numb la Kup
ta tou the sqae n
Su int
(
t Afo 4e dyits
digts
imbouk a a
dil
Saante
Scanne.

elass bank

ullie &tatic vei main [


sc E Scanne(
Scanne
Sa .nElu &um
Syskm.cut puintln(En An
cus tomels nause u

uk p sc:nexkInt ()
intts BC nertnt():
SHing cn a Se. nuxtLine():
datdu E0'0, amt= 0 0
Lt=1)
ni =(75 t/100
elsei(+L13 K= 2)
xi=(8:5 *Þ)/1T0
eleil (t>2 2L tk=8)
i=(45*)/ioo
else
i =(10 0*)/100
amat = bt i -
Systm ouk puintlm" Ceutomuds naua:+
cn++
"Amautbaid:"+amt )
VDT
Vauiahl
dalabe
t t o e &um
tou tum
amt
GAeing
doub
oSto9L Cstol namue
sto iatzuect
deube t8to amount paid
by e bamk!
mpou JaMa Lutil. SeanMEA
elass Area
pulllic slatic void maun O
Seannen sc= neua Seanner(Syslem in);
Syslem.out.uintn (" Cinel S Squau R Raclaug,
Entu yeu cheico.)
chav ch scnrt(). chat(O)
Suitch (ch)

ease C:
System out uintn (" Enten raddus ":
nt r &c nextIt0;
douale p = 22/4;
doub a : p***°;

System out puntln (" Cisuelu Arra= "+a);


bak
Cale. S':
Sustem.ot buinthm"Enten il")
intA=Ac. nxtInt);-
dou a = s*&:
Sym out. uintln ("Squau Asua
=
"+a).
buak;
asn R
Syskm-out buinten ("Enleu u!h aud bread
int L = Ac. nextInt();
int b Lc. nextTnt():
deuble a =L*b
Syeem.ot ju'ntn (" Rectauge
Astaa "a
break;
dotault
Sygem.cuB. puintm " wonmg choica
3
2
imbeut a a dil:>Canne

clase Stues

8talie. veid main ( )


ulic

: Scann(Suskm.in
Seannese
cutuintnEnte he valutol a");
nxtlnk ():
Lut a s C

deuble S=0:0;
mki= 2; '(=20;
it= 8)
SS+Q/t;
Sum. 4 enu "+ 3)
Sysum.cut uintn (" above
=

VD
Nauakl dalaa touu a numht
int tstoue Contual vauiahlu
int tsto he Sum
deubte Sercis

You might also like