0% found this document useful (0 votes)
300 views8 pages

2012 AL ICT MCQ Sinhala at Apepanthiya - LK

The document contains questions about computer science and technology topics. It has 19 multiple choice questions with options for answers. The questions cover topics like computer programming, computer hardware, operating systems, networking, databases and more.
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)
300 views8 pages

2012 AL ICT MCQ Sinhala at Apepanthiya - LK

The document contains questions about computer science and technology topics. It has 19 multiple choice questions with options for answers. The questions cover topics like computer programming, computer hardware, operating systems, networking, databases and more.
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/ 8

3t>3t>

~ @l ~ t:fzEOi!i'J I <Y'f!IJU u;ticJI-lrfi<I»L1JIJjQSlLUJ§l1 All Rights Reserved] .l}l-/).P / N J3IM ifJ____ AL/2012120/S-I

eJle;, Ot;~
til'IT fii7I1fT@ lLJ~:ii:1fJw rr "I.J tiJ
Two hours

* e",~ ~ go;f~DcD 8~l:ll~ c.50~~~.


* Czsfl5'l6 00Gd ~~@ll5'l cldJ~Gd w~ eCnJG> (f0C)'" 8~~~.
* ID6>ZSl ~~0 roJ5l5'l~D 'f;lE) G~~ ~.
'1< Czsfl5'l6 00Gd 890c.5 ~ e:tL~ COG~cl e.:lIeBGGc~ B~DJ 8~0~~~.
* lfoZSl 1 8D 50 Gl5'lzsf 6zsf 6w go;f~~D (1), (2), (3), (4), (5) ~?i) 8~l:ll~D8~ ~Dlde ~j ~~J~d G>le~tsl
~j 8~l:ll6 Gl5'l:f6JGID~, 6~ Od~d o~~ ogOe:l t;.esi@Dtsl oo@t;cd o5e C)~d",esi (X) ~JC:; t;esiDtsltsl.

1. gcj® OBID6>ZSl ~®GGaZSl~J (computer programmer) GCc.5 e.:lICGZSl~G~ ZSl~~~ ~?


(1) GO:f~ GDJ~ ~a®J~ (John Von Neumann) (2) ~GGcl O"(dZSlG (Blaise Pascal)
(3) f)JGcl S>t~d (Charles Babbage) (4) ~E)J ~IDclDJ ceJGGcl (Ada Augesta Lovelace)
(5) GO:f~ <:;gclof5 6ZSlf5CJ (John Presper Eckert)
2. l:ll~~ 06®o6J~ OBID6>ZSl[)C roJ5l5'l ZSl6~ c<G< orol5'l c;,zsfGD~ tll®~ l5'lJzsf1i!l6>~ ~?
(1) If~ZSl8l5'l oBod (ICs) (2) 5();lJc oB®J6>Gd If~ZSl8l5'l (LSI)
(3) zsf~~ c.5ZSla (Micro Processors) (4) gJ~8clD6
(5) Bzsfl5'l'ZSl ~@
3. " es3 e:tL~ .;zsfl5'l GGc.5f5 l5'lJzsf/l!\6>~ roJel5'l GZSlJD B~[)~ cl~'"
'f;lrol5'l gZSlJ();lGc.:! es3cll5'lt~ 865® c.5~roJ orol5'l c;,zsfGD~ ZSl[)6w [)E)Jzsf a~a G~ .;?
(1) ~®:c ~clZSl~ (Floppy Disk) (2) ~®aBl5'l oD~ (Magnetic Tape)
(3) c.5°azsfl5'l ~clZSl~ (Compact Disk) (4) ~®aBl5'l .;a~ eJclZSl~ (Magnetic Hard Disk)
(5) ~lG~~ ®l5'lZSl~ (Flash Memory)
4. .;zsfl5'l ~ro Gl5'lJ6l:ll~ 8~ae; D orol5'l c;,zsfG[)~ gZSlJ();l e"CZSlJ ac~~.
A - '101011101' ~~ e"oGzsfl5'l
B - ~oa:CJ, If~Ctll~ e"ro g~Q)®a
C - IfQ:c~~~W e:tLaG6~ [)~zsfo~~ ZSl6~ c.; ZSl~~
D - @JroZSl~JD lff5dDzsf [)~ Gcl c.5ZSle,,~ C.; ZSl~~
'f;lrol5'l c;,zsf(3[)~ ZSlD6 gZSlJ();l~/gZSlJ();l ®es3~, 'Gl5'lJ6l:ll~' DE)Jzsf GroJ~~ 5cll5'l6 ZSl6~ ca~G~ .;?
(1) D 0®-80. (2) A e"ro B 0®-80. (3) C ~ro D 0®-80.
(4) A, B ~ro C 0®-80. (5) B, C ~ro D 0®-80.
5. 37 10 D l:llC:C <5®~ ~oa:CJ[) [)~Gd
(1) 0100101. (2) 0100111. (3) 0100100. (4) 0110110. (5) 0110111.
6. DHCP ~tll6G®~ If';rocl D~G~
OBID6>ZSl OJcDc
(1) Dynamic Host Control Protocol. (2) Dynamic Host Configuration Protocol.
(3) Domain Host Configuration Protocol. (4) Dynamic Host Configuration Practice.
(5) Dynamic Host Control Parameters.
7. e,,®a~ZSl .;zsfl5'l e,,~<,; (relational databases) 8~ae; D orol5'l c;,zsfGD~ ZSlD6 gZSlJ();l~ l53~6~ ~?
(1) DCl2[)ZSl gJd@lZSl ~l:ll6 (primary key) 5ZSlGO ~l:ll~ (alternate keys) <ll:llG6~ Gl5'lj6J ID1G~.
(2) DCl2DZSl <l~:C ~l:ll6w (a foreign key) ~e;roJ IfID~~ 1f~8Dozsf BB@ (duplicate) ZSl@ G~J~B ~.
(3) gJd@lZSl ~l:ll6w G~J®t~[) [)Cl2[)W l53f5@)J6>~ ZSl@ G~J~B ~.
(4) DCl2DZSl 1f~:C ~l:ll6w GD~zsf [)Cl2DZSl gJd@lZSl ~l:ll6w 5~ al:ll ~.
(5) [)Cl2DZSl 5ZSlGO ~l:ll~ ~Q)~ al:ll@ ~.

8. OBID6>ZSl OJC~ZSl DNS EO ZSlJf5~~ tll@zsf .;?


(1) IP 88~ oD6J G.;8. (2) De,,® ~J@, IP 88~ aDD oBDf5l5'l~~ ZSl68.
(3) OJc~zsf D86e"D8~ IfJ6w/l!\J ZSl68. (4) OB~CZSl",~D ~J@J[)8 (directory) Gcl[)J e,,0~8.
(5) OBID6>ZSl OJc BEOo~w 6BG~ZSlD e,,®a~ ZSl68.
-2- ALl2012120/S-I

9. oB(5)6Jtil~ti'l ciJC 515)llJo~ (network configuration) oBclll!lJ BB@) oe;roJ G~J~(5)Z5:l rozB 5DJ15)~ D~Gd
(1) traceroute. (2) netstat. (3) hostname. (4) ipconfig. (5) ping.
10. @)~1l!l1l 6zB6 00066J 0<D§~ Dt)Sti'l66J~ ti'li!;; rozclGcl
(1) clDJroJ5ti'l oro ooDaZ5:l o<D§~cl GCO ~. (2) ti'la@@) oro ooDaZ5:l o<D§~cl GCO ~.
(3) tila@@) oro 5DaZ5:l o<D§~cl GCO ~. (4) clDJroJ5til oro 5DaZ5:l o<D§~cl GCO ~.
(5) clDJroJ5ti'l oro tila@@) o<D§~cl GCO ~.

11. cio(5)@) t,6ti'ld15)~ti'l ti'lJt)~ SJ<D (15)JD15) (non-functional) lfDGdllZ5:lJDcl GroJ~m@) 50Z5:l6 Gti'lG6mGm oroZ5:l oe;rol5'i
ti'lD6cl @)63l5'i ~?
(1) Gti'lO 0&i5E:)~cl ~l~@)
(2) t,6ti'ld15) qz@)tll@)cl Cl~@) (receiving)
(3) o®SJmw lf~ooj Gci:i)15)G~l5'i (contact list) If°ti'l~cl GZ5:lj6J(5)l~@)
(4) t,6ti'ld15) qz@)tll@)cl CSJJ~@) (making)
(5) SJzC)B~ oe;roJ lf~6z<~ti'l D(5)6"l® ti'lJC~cl §~@)

12. CYGCclG8JBti'l GOt,® ~m~~cl (electronic washing machine) DE:)J~@) GroJ~m ozcB~ rozclGcl
(1) GZ5:lJ6tll6z o<D§~cl GCO ~. (2) clD~o@~ o<D§~cl GCO ~.
(3) 5Gcs;tIl!l~ (Expert) o<D§~cl GCO ~. (4) ti'li!;;@)15)Jti'l66J GOti'lJ6ti'l o<D§~cl GCO ~.
(5) (5)~G~~ OZti'l9® o<D§cl GCO ~.

13. HTML Gci:i)15)~ti'l 5D66J~cl (comment) qztlli!;;~ BB@) oe;roJ ~~ OCt:jl~ BB@) (mark up) t:jl@)cl ~?
(1) <! Districts of Sri Lanka (2) <!-- Districts of Sri Lanka -->
(3) IlDistricts of Sri Lanka (4) <* Districts of Sri Lanka *>
(5) <! Districts of Sri Lanka !>
14. 6clZ5:l6J ti'lt)@)Jl5'iZ5:lGdJCJDti'l GclDti'l~t:jl ~15)ti'lC) DzE:) ti'li!;; gtll lfD@) 0l~ (5)6J15)~ GoB@) 0l~ (5)6J15)~ 8gGDgl5'i 5 oro
12 GDB. GD~-OJ~ti'l Goj6@)~cl ro6roJ BOlc (integer) If(5)~cl GCO lfltlli!;;~ ti'l615) C~ DzE:)ti'l6~ cSJ15) 0l~ (5)6J15)
BDz6~c;.B ~ro~6z BB@) oe;roJ DE:)J~ 9t,9 Dl5'iGl5'i oroZ5:l c;.clG(15) ti'lD6 DC°a;lZ5:lJ oBclll!lJD ~?
(1) 06JO~ (Range) (2) ~(5) (Length)
(3) g6to~ (Type) (4) ooi:i)llJ~@)ti'l If(5)~ (Numeric value)
(5) O°i:i)llJ oti'l Ooi:i)llJD

15. 1448 + 1758 =


(1) 225 8 (2) 341 8 (3) 441 8 (4) 531 8 (5) 314 8•

16. IP 8815) oro lf~ciJc lfJD66J (subnet masks) 8gSJe;D oroZ5:l c;.clGD15) ti'lD6 gti'lJGd~ BDz6~ ~ ~?
(1) 192.248.32.3 ~~ B om§Gd IP 8815)~B.
(2) 255.255.255.248lf~ciJClfJD6~cl 06)Z5:l ciJC~ti'lC) 0~ti'lJ6ti'lBl5'i (hosts) ro~G~15)t:jlC) oro9til® 0lc8~ rozB ~.
(3) IP 8815)~cl <Oll otil (bits) 16 Bm 0@)m5Z5:l Gt).
(4) 10.32.1.5 ~~ C om§Gd IP S815)~B.
(5) 255.255.255.0 ~~ C om§Gd IP 8815)~B.

17. OSI ~J§ lfJ~t)GdGd ciJC 0Z5:l6~ (network layer)


(1) Dz6~ BDz6~BB® 8t, ti'l68.
(2) .lfl5'iZ5:lt)-~~JD8 omB~~15)~ (inter-process communication) 8t, ti'l68.
(3) (5)l~® OJC15)~ 8t, ti'l68.
(4) ~~Z5:l 0lti'lz08 @)Jt)(5)(5)Z5:l BB@) (routing) 8t, til68.
(5) c:;qll!l lf15)JD66J~ 8t, til68.

18. clD~o~~ a;lDm (5)@)m OJC15) o<D§~cl oe;roJ DE:)J~@) 9t,9 G@)Grog® 0<D§ Dt)(5)~
(1) SJ~-oB~Cti'l SJ~-~Jt)~ G~. (2) Z5:lB-oB~Cti'l SJ~-ti'lJt)~ Gt).
(3) Z5:ldll ti'lJC (real time) G~. (4) Z5:lB-oB~Ctil Z5:l£?-ti'lJt)~ G~.
(5) SJ~-lf~@~J~15) (multi-threading) G~.

19. 10 % 3 ~15) 08Z5:lm (Python) gti'lJGd15)~ qz(5)8G@)6) g§6C~ t:jl@)cl ~?


(1) 0 (2) 1 (3) 2 (4) 3 (5) 10
A LIUJIN (¢J /:J.D q-
-3- AL/2012/20/8-I

20. ~e:J!5) ~clGDm DllJO Gcl!5)O (pseudo code) oGZSlZ5fm:


Begin
total =0
For count =1 To 10
If (count is odd) Then
total =total + count
EndIf
Next count
Display total
End
<ye:J!5) DllJO Gcl!5)Goli3 g£3<';Jmo (output) 2:jl@)cl <,;?
(1) 10 (2) 15 (3) 20 (4) 25 (5) 55
21. ~e:J!5) ~clGDm qJ<,;t5Gd (models) oGZSlZ5fm:
A - OJG (network)
B - ~o lflS (waterfall)
C - O®'il~wZSl (relational)
<ye:J!5) e':JDJ q~GO~ 2:jl@)cl/2:jl@)m eDJ <,;cl!5) o§<; (fJ<,;t5Gdocl/qJ<,;t5Gd G5 <,;?
(1) A ~@)&. (2) B ~@)&. (3) C ~@)&.
(4) A Oe:J B ~@)&. (5) A Oe:J C ~@)&.
22. ~ <;a5m ~ (Relational Databases) Bg'ilC;D ~e:J!5) ~clGDm gZSlJGd 0GZSlJ 'ilG~m:
A - D<:s;lDcl (table), Dd~Dcl (object) GGO 0lGGcl.
B - D<:s;lDZSl <,;cl!5) £'\cStDZSlD (column) tl@) D<:s;lGDIi3 clGll!!J'gocl (field) /C~Gcll106Jocl (attribute) 018 Bo~ GlG~.
C - D<:s;lDZSl <,;cl!5) GdgoZSlD (row) CiioGtMeJocl (record) 018 Bo~ GlG~.
<ye:J!5) g~JGd q~GO~ 2:jl@)m gZSlJGdO/gZSlJGd O!5)ll Cii5 <,;?
(1) A~@)&. , (2) B ~@)&. (3) A Oe:J B ~@)&.
(4) A Oe:J C ~@)&. (5) B Oe:J C ~@)&.
23. ER 0i~oDe:JZ5f Bg'ilC;D ~e:J!5) ~clCiiDm gZSlJGd 0GZSlJ 'ilGZ5fm:
A -' ER cSt~oDe:JmZSl o@l'ilZ5fW!5)JDcl (relationship), o@l'ilZ5fWZSl O§<;OZSl (relational database) D<:s;lDcl (table)
GGO ddJB!5) ZSl~ e:lLBo.
B - o®'ilZ5fW!5)JDZSlD, tloD o®'ilZ5fW fl C~Gcll106J (attributes) £3Qlo e:lLBo.
C - o®'ilZ5fW!5)JDZSlD, t!2!5)Jt5d (entities) G<';ZSlcl ~@)6Jcl o®'ilZ5fW ZSl~ e:lLB O.
<ye:J!5) gZSlJGd (f~CiiO~ 2:jl@)m gZSlJGdO/gZSlJGd O!5)ll G5 <,;?
(1) A~@)&. (2) B~@)&. (3) AOe:JB~@)&.
(4) A Oe:J C ~@)&. (5) B Oe:J C ~@)&.
24. ~e:J!5) ~clCiiDm o®'ilZ5fwo (relation) oGZSlZ5fm:
student(stdNo, name, address, nicNo, date_oCbirth)
<ye:J!5) student o®'ilZ5fWo @)!5) ~<,;m® fl ~e:J!5) ~clCiiDm ZSlDo SQL (Structured Query Language) gZSlJGdO DJcs1 B£3@)o
DGdCiiO~ (syntactically) ~Dt0~ Cii~ <,;?
(1) select *.* from student (2) select all from student (3) select * from student
(4) select stdNo.name from student (5) select stdNo; name from student
25. ~e:J!5) ~clCiiDm <,;cl!5) o§<; Cii@)Ciie:J~® oGZSlZ5fm:
A - D<:s;lDBZ5f CiiOCiitMeJ (record) <yDcl BB@)
B - D<:s;lDZSlD mD <,;cl!5) 6ZSl~ BB@)
C - D<:s;lDZSl lfl£3 <,;cl!5) 5ZSl06JO (modify) BB@)
D - D<:s;lDBZ5f <,;cl!5) o§<W06J (retrieve) BB@)
"A, B, C Oe:J D om <,;cl!5)o§<; Cii@)Ciie:J~® @OJcl@)ZSl BB@)D BgGDg~ om SQL gZSlJGd e:JJ5!5) ZSl~ ~~ Cii5."
<ye:J!5) gZSlJGdCiid Ii3d~m Bo~@) oe;e:JJ ~e:J!5) ~clGDm ZSlDo gZSlJGd q~BgCiiD~ DeJJcl 9ba Cii~ <,;?
(1) delete, select, update Oe:J insert (2) delete, insert, select Oe:J update
(3) select, delete, insert Oe:J update (4) insert, select, delete Oe:J update
(5) delete, insert, update Oe:J select
,26. ~e:J!5) ~ ql£3 @~o gZSlJGdmO at::! ZSl~ 5D g£3~GO 2:jl@)cl G5 <,;?
F(x,y) = xy(x + y)(Y+ y)
(1) x (2) Y (3) x (4) y (5) xy
-4- AU2012/20/S-1

!27. Otl)tSl <:-cl&)2S) tllt)6 @l3c;l gtllJcQ2S)c;l, ~ <'hb1 tSlt5tll2S) oB06Gc;)~ (logic circuit) gb1~2S)c;l £16t0~c;l tll613 ~?

(1) (A+B)+(Be c) A----\


(2) (w)e(N) B----,----I

(A+B)+(Bec)
(3)

(4) (AeB)+(N) c_D-----l


(5) (AeB)+(B+C)
28. CPU l:l:!~O ~Jtl)6~(fetch) tll62S) c~ COG~d 5GcltSl2S)c;l (decode) tll6~ CQ)2S) ~o6C)tllc;l tl)b2rlt)~ cQ)~G~
(1) eJ6~tll ®l5ltllc;l
(Primary Memory) 2S)@£1. (2) G68dl5l6 etlltllc;l (Register Unit) 2S)~£1,
(3) OJC2S) e'tlltllc;l (Control Unit) 2S)~~. (4) ALU 2S)~£1,
(5) ~®GcQ) <D~tllc;l (Program Counter) 2S)~~.
29. e5tl)tSl ~e;tl)~ ~JC)c;l2S) COJo<D ~l:l:!G6~ G~t)?5l'® ~e3®roJ~ gG~Gdc;l (Random Access) e30c;l~ CQ)25'!G~ til®B~ ~?
(1) gWJ2S) ®tSltllc;l (2) ~®Q)B::;) Ed:5)c;l
(3) CDslDVDs (4) ~G2S)~ @)tSltll COJD<D (Flash drives)
(5) ~acj 5dtllc;l

30. 5G<ad 60tll dBc;lJt)tll ~~l:l:! a<<DcGc;)cl, @ CDtllJ~ Gt)G~2S) 8c;l ®t)O, c;l® ~®J<D®tll GtlO) OJ~tll (web-based) GdDJ
COGc;l1~ tll6<D~~25'! CO~2S) l5lllJ<Dc;lcl CIGQ)m2S)O ~Cl~® ~e;tl)J ®Jt5<D<Dl5l (online) <'h2S)~®cl tll613. CO~2S)
tSlllJ<Dc;l <'h2S)~® BBG® G®® <D~G~~t) t)e:lJt>i® Gtl)J~m t)t5~tll6~c;l tll~ ~clGcl,
(1) oJBGtl)1a3tllc;lJG<Dm a6 &:>G~m~O (Retailer) GC~ c;l. (2) oJBGro1a3tllc;lJG<Dm t)llJOJ6c;lO GC~ c;l,
(3) t)llJoJ6Gc;lm OJBGroda3tllc;lJO GCe3 c;l. (4) DllJOJ6Gc;l25'! t)llJOJ6c;lO GC~ c;l,
(5) Gdbtllc;lJG<Dm DllJOJ6c;lO GC~ c;l.
31. ~D5wJ2S)c;ltll GdDtlll3~ ~tSl6 GO'1l<<Dt§tll ~tl) 6tl)e3ll 0&'5e:l roJ <';.m~® ~®Gg'@l~c;l ~e;tl)J t)e:lJ?5l' 8B~~®~c;ltll (cost
effective) roJ ~J6~tSl t)mGm 0tl)15l c;,clGt)2S) tllD6 ~®c;l ~?
(1) lftGCclG9J£1tll c;,~® at)~ (2) GOt§ ~®®25'!~~ 01~?5l'~® (Teleconferencing)
(3) 5~?5l' ZllIOtC (e-mail) (4) e3®JO OJCc;lcl (A social network)
(5) Gt)Q} ~e:l5c;lcl (A website)

32. Otl)tSl ~e;tl)m CJcl@l&'tll (characteristics) ~CtllJ Q)cm2S):


A - dDl5lm~ (Autonomous)
B - <Db1tll oB~6t)c~ @c;lJtllJ5tSl'Dc;l
C - tllJt5c;lc;lm tllJC t)tllt)J~tltllO 8®J~@)
D - Q)~CD tlt5W2S)c;l t)2S) GtSlJ6l:l:!~ ~®tl) ~mtSlt5 @c;lJtllJBz:;:ft)c;l
®at,tllJD<D tllJ6tllc;ltll (agent) CJcl@l&'tll t)mG~ cytl)tSl ~e;tl)m tllt)6 OOJ ~?
(I) A ~tl) B o®&'. (2) A ~tl) C o®&'. (3) A, B ~tl) C o®&'.
(4) A, B ~tl) D o@&'. (5) B, C ~tl) D o®&'.
33. ~t5t)Dt5£'l ~J<D~2S)c;l (ubiquitous computing) gGdo2S)t)?5l' t)mGm
(1) G<~c;l oB~6 ~~~5tll6~(..:l (Customisation) ~£1 Gc;lt,IOOG~ c;l,
(2) ®tl)J oB®J~Gd 5roJ<D gb16C ~ltlla® ~~ Gc;l,t,lOOc~ c;l.
(3) dD~Dtllal5l GOct5 c;l~~ (ATM) ~~ Gc;lt,®tlC~ c;l,
(4) 5til~®GoJc c;lm~ (PaS Machine) ~~ Gc;lt,®Dc~ c;l,
(5) Ql?5l'b1 ~6Gcdat)cl OJC2S)c;l ~~ Gc;lt,®Dc~ c;l,
34, Otl)tSl <:-clGt)2S) 0':; ~Ctll::J Q)cm2S):
A - c:rJ~2S)c;l (Input) B - gb1~2S)c;l (Output) C - @c;lJt)t§c;l (Process) D - ~JC)c;l2S)c;l (Storage)
cyrotSl OOJ ~l:l:!G6m, o<Db1c;lcl ~e;tl)J qcn~Zl t)mGm G®J2S)tlJ ~?
(1) A ~ro B o®&'. (2) A, B e3ro C o®&'. (3) A, C ~ro D o®&"
(4) B, C ~ro D o®&'. (5) A, B, C ~ro D 8c;lCC ®.

35. "~5Gd ~®®m~~ 01~?5l'~® (Video conferencing) c;lm2S), 550 d6J2S)t)C 852S) G~G~2S)til Gro1 B~oG~2S)til ~l:S)6
..................... ro6roJ 8t,D2S) ~Jtlle:ldJt)cl GC~ t)e:lJ?5l' Gtl)J~m 5dtSl6 GtllGt5."
cyrotSl gtllJadGc;)~ ~dtSllm 86~® ~e;roJ 8~Gt)~m De:lJ?5l' at,a 8~l:l:!~ DmGm orotSl <:-clGt)2S) tllD6 o~ ~<DCc;l ~?
(1) 6tOt)J~£1c;lZS), ~5Gc;l1 (2) t,6tll62S)c;lcl, @Dll (3) OJCc;lzs), @t)ll'
(4) 6totlJ~£)c;lcl, @t)ll~aadll (5) OJCc;lzs), @tlll~aadll
-5- AL/2012/20/S-1

36. ~eoZSl ~d&l~ URL C.:l OGtSl25~~.


http://www.schools.orgI2012/lessons/index.html
q)eoZSl ~deD~ URL ti3 :51C.:l@)JD8C.:l (protocol) ~trlD~ GQl25l'G~ ~eoZSl oe;eom ~@)cl @)@~ ~?
(1) http (2) htrnl (3) www (4) org (5) www.schools.org
37. ~eoZSl ~d&l~ D<l;!D G(3)JE::l~(3)~ GQl~G~ ZSlDCS htrnl GclZSlC.:l @)03~ ~?

Time Table

1 Time I [MOnday II Tuesday 1

18:00 - 9:0011 Mathematics I[ Science I


<caption>Time Table<lcaption> <table border = "1 ">
<table border = "1 "> <caption>Time Table<lcaption>
(1)
<thead>
(2)
<tr>
<tr> <td>Time<ltd>
<th>Time<lth> <td>Monday<ltd>
<th>Monday<lth> <td>Tuesday<ltd>
<th>Tuesday<lth> <ltr>
<ltr> <tr>
<lthead> <td>8:00 - 9:00<ltd>
<tr> <td>Mathematics<ltd>
<td>8:00 - 9:00<ltd> <td>Science<ltd>
<td>Mathcmatics<ltd> <ltr>
<td>Science<ltd> <ltable>
<ltr>
</table>

<table border = "1 "> <table border = "I ">


Time Table <caption>Time Table<lcaption>
(3) (4) <tr>
<tr>
<th>Time<lth> <th>Time<lth>
<th>Monday<lth> <th>Monday<lth>
<th>Tuesday<lth> <th>Tuesday<lth>
<ltr> <ltr>
<tr> . <tr>
<td>8:00 - 9:00<ltd> <td>8:00 - 9:00<ltd>
<td>Mathematics<ltd> <td>Mathematics<ltd>
<td>Science<ltd> <td>Science<ltd>
<ltr> <ltr>
<ltable> <ltable>

1 ---'

<caption>Time Table<lcaption>
<table border = "I ">
(5)
<tr>
<td>Time<ltd>
<td>Monday<ltd>
<td>Tuesday<ltd>
<ltr>
<tr>
<td>8:00 - 9:00<ltd>
<td>Mathematics<ltd>
<td>Science<ltd>
<ltr>
<ltable>
- 6- AL/2012/20/S-I

38. ~tl:lZS) c:.clGD25) XML Gc'Q)25) e.5CZ5l25'!25):

A - <?xml version=" 1.0"?> B - <?xml version=" 1.0"?>


<country> <name>Sri Lanka<!name>
<!country> <country>
<!country>

C <?xml version=" 1.0"?> D - <?xml version=" 1.0"?>


<country> <name>
<name>Sri Lanka<!name> <country>Sri Lanka<!country>
<!country> <!name>
~tl:lZS) e.5~tl:l25)' ~®z;)
XML D:xr!B£3DcO Cf~~C G~ ~?
(1) A~®&. (2) D ~®&. (3) B e.5tl:l C ~®&.
(4) A, C e.5tl:l D ~®&. (5) B, C e.5tl:l D ~®&.

39. <a href = "sriLanka.html" target = "_blank">Sri Lanka<!a>


c..:l25) HTML CSC25)c..:l (tag) "sriLanka.html" 25)~£3 GGQ)25)c..:l Cf£3BclSDz;) (browser) ®(25)' e.5o~t5(S;l25)c..:l Z5l6~ c@25'!(25)'
(1) 6® 6J~GD63® (frame) c..:l. (2) 25)D Z5l~6DZ5l (window) c..:l.
(3) 6® Z5l~6GD63® c..:l. (4) "':"'blank" 25)~£3 6J~DZ5l c..:l.
(5) "_blank" 25)~£3 Z5l~6DZ5l c..:l.
40. HTML 8g@~D ~tl:lZS) c:.clGD25) 9Z5lJ(S;l e.5CZ5l25'!25):
A - Gtl:lJ~25)' orZ5lS~ (well formed) HTML GGQ)25)c..:lcl &it5/illc..:lB25'! (head) e.5tl:l Z5l~ GZ5lJOe.5B25)' (body) e.5®25'!5ZS)
5c..:l ~l:jl® c..:l.
B - HTML Gc'Q)25)c..:lz;) c..:l~ ~B(3)6>Z5l ~®GGQ)c..:lB.
C - GGQ)25)c..:lZ5l G~~® ~t:)e.5E:) (formatting) (3)l25'!5® e.5~tl:lJ Sb CfDZ5lJ(S;l (white space), 0l~O (tabs) e.5tl:l 630
Gdg or®50® Gc..:lJ'; (3)ZS) ~Bc..:l.
D - 'Z5l~ GZ5lJOGd Cf25'!ZS)t5(3)ZS)c..:l Cf£3BclS (browsers) ®B25'! e.50~t5(S;l25)c..:l GZ5lGt5.
~tl:lZS) 9Z5lJ(S;l Cfl:jl(625)' e.5ZS)IlD25'!G25)' Z5lD6 e:1DJ ~?
(1) A e.5tl:l D ~®&. (2) B e.5tl:l C ~®&. (3) B e.5tl:l D ~®&.
(4) A, C e.5tl:l D ~®&. (5) B, C e.5tl:l D ~®&.

41. c;a~ 50Z5lc..:lZ5l G@~® (partitions) 6Z5lZ5l0 Dt:)J ~5Gc..:l25)' Z)t5®J6>c..:l BBG® 90J25) DJ8c..:l D25)'G25)'.
(1) G®Gtl:l~® ~<O£3c..:l e.5tl:l ~®GGQ) G(3)J~ GD25)' Z5l6~ Cl~®8.
(2) G(3)J~ (files) Z5lJt5c..:lz;)/ill®D e.5~<066> (retrieve) ~Bc..:lJD8.
(3) 25)J®JDB (directory) tl:lJ C~ 25)J®JDB (sub directory) orZ5l8G@l ~tl:lSD8.
(4) @~ ~B&iCZ5l825'! ~tl:lSGD25'! z)t5®J6>c..:l BBG® ~Bc..:lJD8.
(5) GZS)16J(3)25)'25)J C~ G(3)J~DC C~d6 (backups) C@J(3)l25'lG® ~tl:lSD8.

42. e:l@l@25)'OZ5l ~clzs)e:l~'; 8g@~D ~tl:lZS) c:.clGD25) Z5lD6 9Z5lJ(S;lc..:l e:lzs)ll GE:) ~?
(1) DC>;lDZ5l e:lo~Z;)zs) c..:ll:jl6Z5l (composite key) Cf(3)c..:l Cf63~25)1l (null) 5c..:l ~B c..:l.
(2) DC>;lDZ5l @)25)(® ~~DZ5l Cf63~25)1l (null) Cf(3)c..:lc..:l25)' £3~c..:l ~B c..:l.
(3) 9J6@lZ5l c..:ll:jl6cl z)t5®J6>c..:l BB® e:l~tl:lJ DC>;lDZ5l ~~ G~Z5lcl Gtl:l1 B63~c..:lcl e:l oGc..:l1025)c..:l Z5l~ ~B c..:l.
(4) DC>;lDZ5l Cf25)1l c..:ll:jl6Z5l (foreign key) Cf(3)c..:lc..:l25'! c..:lJDclZ5lJ~25) Z5l~ (25)J~B c..:l.
(5) z)t5®J6>c..:l Z5l~ ~SD, DC>;lDZ5l D~tl:lc..:l GD25)d Z5l~ (25)J~B c..:l.
-7- AL/2012/20/S-I

• lfDl5l 43 ~ro 44 gcs;fznDcEl 8g~~ ~oG3® ~e;ro) oroZ5)


c;.clGDzn <DI~® ~Elrozn ~Cl5lZ5)'zn.

43. <DI~® ~ElroGzn63 l5lD6 <DI~® O)czn D~roc.5/D~ro tl)BZ5)


l5l6 t53G~ <,;?
(1) lf~~®c.5 (Sequence) o®Sn.
(2) lf~~®c.5 ro) Gz:;)B® (Selection) o®Sn.
(3) lf~~®c.5 oro ~zn~l5l6~c.5 (Iteration) o®Sn.
(4) Gz:;)B® ro) ~zn~l5l6~c.5 o®Sn.
(5) lf~~®c.5. Gz:;)B® oro ~zn~l5l6~c.5 o®Sn.
44. oB~Cl5lc.5) If<Dc.5 6 If)c;znc.5 l5l68 zn®, <DI~® oElrozn @)es3m
t)6r8Z5) lflc'G<D)BZ5)@) 8g@e;D oroZ5) c;.zsiGDzn l5lD6 gl5l)(Jdc.5
00t~ GeJ <,;?
(1) i 63 If<Dc.5 6 El O®)zn Dzn BEl 6c.5 znDt538.
(2) 6c.5 gt53c;znc.5zsi GCO If<Dc.5 4 §~~c.5 l5l68.
(3) 6c.5 gt53c;znc.5cl GCO If<Dc.5 2 §~~c.5 l5l68.
(4) 6c.5 1 BEl 6 GZ5)zsi Bc.5~ t)6Jc §~~c.5 l5l68.
(5) 6c.5 1 BEl 5 GZ5)zsi Bc.5~ t)6Jc §~~c.5 l5l68.

45. oroZ5) c;.clGDzn 0ID~® gl5l)(Jd ~Cl5l) @cmzn:


A - a,b="Nimal",30 B '- a,b=1 C - a=b=1
D - a=True E - a=true
D)<D'B~DcEl lf~~cD t)~6~ DmGm <f,lroZ5) c;.clGDzn l5lD6 o8Z5)Z5)' (Python) gl5l)(Jd <,;?
(1) A ~~ C o®Sn. (2) B ~ro D o®Sn. (3) A, C ~ro D o®Sn.
(4) B, D ~ro E o®Sn. (5) C, D ~ro E o®Sn.

46. o8Z5)Z5)' <';z:;)Z5) g6l o 8g@e; oroZ5) c;.clGDzn gl5l)(Jd OCl5lZ5)'zn:


A - tuple g6roGc.563 <';z:;)Z5)c.5zsi Gl5l)®)D8m GDZ5)' l5l6~ c@zn oBo)B<DZ5) q<Dc.5mG<DZ5)' o®mBZ5) GeJ.
B - dictionary g6roGc.563 <';z:;)Z5)c.5zsi Gl5l)®)D8m GDm l5l6~ c@zn ro) "{", "}" D6rom ~~ Dzn
oBo)B<DZ5) Gzn)Dzn Gl~: lfG:lGl (key: value) ~<DC Zl'lCl5lc.5§Z5)' ~zsiZ5) GeJ.
C - tuple g6roGc.563 <';z:;)Z5)c.5l5l q<Dc.5cl dictionary g6roGc.563 <';z:;)Z5)c.5cl G®m Bl5l6~c.5 (modify) l5l~ ~§c.5.
<f,lroZ5) gl5l)(Jd lf~G6m OZ5))5 DmGm l5lD6cl/l5lD6 e"D) <,;?
(1) A o®Sn. (2) B o®Sn. (3) C o®Sn.
(4) A oro B o®Sn. (5) B oro C o®Sn.

(1) for i in [8,9,10,11,12]: (2) fori in [8,9,1O,1l,12]


#Generate the multiplication table of i #Generate the multiplication table of i
print('Multiplication table of' ,i) print('Multiplication table of' ,i)
for j in range(1,12): for j in range(I,12)
print(i,'*',j,'=',i*j) print(i,'*',j,'=',i*j)
printO printO
(3) for i in [8,9,1O,1l,12]: (4) for i in [8,'9',1O,'ll',12]:
#Generate the multiplication table of i #Generate the multiplication table of i
print('Multiplication table of' ,i) print('Multiplication table of' ,i)
for j in range(1,12): for j in range(1,12):
print(i,'*',j,'=',i*j) print(i,'*',j,'=',i*j):
printO printO
(5) for i in [8,9,1O,1l,12]:
#Generate the multiplication table of i
print('Multiplication table of' ,i)
for j in range(1,12):
print(i,'*',j,'=',i*j)
printO:
-8- AL/2012/20/S·I

48. e5tlJ!:il .;.tsfGDm lfe5®at5~ e58!:il25i l@®GeOJ~ e5Gtll25im:


name = ['Kamal', 'Ruwan', 'Nimal', 'Wimal']
datacount = len(name)
for i in range(datacount - 1):
for k in range(i+l, datacount):
if .
name[i],name[k] = name[k],name[i]
name ~!:i'!!:il D.;gtlJG~@ ~!:i'!!:il lf8!:il® gSDt5!:illl lftll:>6:>~ 8~GD~c) (in the reverse alphabetic order) 8~G~c t53B® e5e;~:>
,&tlJ!:il @o!:ilIGm@t e5tlJ!:il c;.tsfGDm tllD6 e58!:il~ gtll:>(5;l~ <f1Zj}~zs:f tll~ ~Zj} ~?
(1) name[i] < name[k] : (2) name[i] > name[k] : (3) name[i] = name[k] :
(4) name[i] < name[k] ; (5) name[i] > name[k] ;

49. e5tlJ!:il c;.tsfGDm e58!:il25i l@®GeOJ~ e5Ctll25im:


deffun(a):
i, c, j = 1, a[O],O
while i < len(a):
if (a[i] > c):
c = a[i]
j = i
i = i + 1
return j
print (fun([5, 2, 23, 10, -3]))
G®® l@®Gc'OJG~@ gSl:,m~ (output) 2i)®tsf ~?
(1) 23 (2) 10 (3) 5 (4) 2 (5) -3

50. e5tlJ!:il .;.tsf~m e58!:il25i l@®Gc'OJ~ e5Ctll~m:

fl = open('inputtxt', r') t

f2 = open('outputtxt', 'w')
for line in fl:
data = (line.strip()).split(",")
total = float(data[l]) + float(data[2])
f2.write('%7s-%4d\n'% (data[O],total»
fl.closeO
f2.closeO
"inputtxt" G(l):>~GD@ lf25i!:ilt5(l)!:il~ e5tlJ!:il ~ lfl!:il.
Nimal,30,60
Saman,80,45
Upali,I00,80
l@®Gc'OJ~ @~:>!:il'@)tll £BG®25i e5a, "output.txt" G(l):>~GD@ lf25imt5G)!:il~ c;.tsfGDm If:>tll:>6~ 2i)®tsf GeJ ~?
(1) Nimal (2) Nimal - 90 (3) Nimal - 90.0
Saman Saman - 125 Saman - 125.0
Upali Upali - 180 Upali - 180.0
(4) Nimal,30,60,90, (5) Nimal - 90 Saman - 125 Upali - 180
Saman,80,45,125
Upali,I00,80,180

You might also like