You are on page 1of 9

I

q.{Do).cr.(c,.ooci) oGrroo -
e.oun.p @-wil FDu wfuie - ms
2(}16
as6co e"r" ] 20 AECIca oacd4dl oaJEoOgo oczdsocs
I eoc

@A8 €s6 o6er:6cs/qa:off orpnilgrir


Sr_urb _ I ogo/ uggyb I

ot. .t tI. , 2t. CD


O ,
3I. T

42. 3 12. 3 ,., , .a2. 3 4


42.
o3. , t3. ,,
2,s.. iD 3:t. I 4',,.

o4. D t4. ,
24. ,.4. iD
4
-a_____ 44.
05. I5. ,
26. 35. -__t__. 45.
06. lG. 26. 3G. I 46.
07. 17. 27. t7. 47.

18.
38. 4A.

19.
s9. 49..

20.
40 50

A@d6 eeoed
6IIOer_ crdofU*rg* l Hffio.6." ea€
@ ffi** Eo

9to eoe 2x5O = IOO


Gonfir0 qsnelfleeir
€E .._="
.'E:B:i '
:.

+:it"
,i
lnformation and communication Technology(20 E)
; Partll A ' ;-

1 (a) When clicked on 'Cover page,, the image named


'coverPase.ipd is displaved/opened on a new tab/window.

When clicked on'Content' the docurnent ,content.htrnl, is


displaved/open on the same window/tab (overurriting the
content ).

- .., (iii) [when clicked on the imaoi'fiaures.ioo'] [the document


'fisures.html'is dispraved/opened on the same windodtab
(overwriting the content on that page).I

Note : Do not consider the case-sensitivity of the names(content,


cover
Page,-coverPage jpg,co ntent. html,figu res jpg,fi gures.htm
) I

External style sheets/External/External CSS

Note : Do not give any marks if more than one mechanism is given

1
h2{
colod red; 1
text-align: center; 1

PI
font-family:"Courier New,'; I t
font-size: 14px; I

t I Note : Order is important if both


I values are eiven together

</stvle>

Note:
1) lf the type is given the correct type textlcss should be given
within quotes(double or single).
2) single quote is arso ailowed in praces where doubre quotes are
used.
s$fgsSpropertiesand.values ?rcc?s€sensitive- .

- eood4dr ror ts:rlEeolar oozdo<oo re+€ Qeo oao€o) le.eoc.to (cood ooe) a.o.oocc - zorc lqooo5J a"oocoro qre€,rs ,o€ EeD qro.
r1

1
I
7
1

t
t
7
7

:d

i'\
'rjl -,
( \/
Jii
4-
: t..

20 - ooadrB.l oc toal6ooq,'' anso.uo (e4€


qoo o6o€o)f q.oo*a (.od
- 2orof qo€s6J."-rro-
"""1i.* [.0[[[
Nothing/no output

It has a neverending(infinite) loop

-8. I
total =0 rI ."--\\ ,
t s'i.'
t':
:.-: a.J i=l o ..,.i:. ,., i i._ 1 1.
while (i<= 10):
total=total+i
i=i+1
print{total)
.
Note:
The program shourd be executabre and print 55 as the
finarvatue.

Addresssize .q.,= *, ; ..- =15bit r


l: :, , -',; Max number of unique addresses possible - 116 i'l
':,
Max number of bytes addressable - r15 r.. I ,..
;
Max usable size of memory
=2T=26x21d.

=64K8.- ,l
Correct answer 1 mark
Correct computation 4 mark

-! Ii'. "'I::
IL

U',.i-j tJ i ",
_.1

.
!i;
d.4 1*!'ir: 11, \_: J

' ol .al6oo$o oo6ftt66 (c'sg Qeo oaodol f q.ooc.o (6ocJ eod a.ococs - 2016 lqoE 6, n ooro:n ozacd .-" *
,,.=
3

lnformation and Communication Technology(20 E)


Part ll B
2016

rrf' .;
: a-:':'1. 4:1!'::--.i: l

' I #-.'l

'.,.) \:
i-,- ji
i-\

4 a) lnputs
i) lnput to indicate end of iteration 1
ii) Food Type/Price of the food type 1
iii) Number of items of the food type 1

Output
Payment due for the tray.

't
hfi,izeatraytPt{idlFoodBic€r''.-'.1''
price-due = 0
\:'i

pri ca_due
=
price_dr.re + ricc_of-the_6od-type-horn_rhe-err.y * tq

StarUend: 1 Mark
Conect ln[tialization : 1 Mark i,'
'l ' ' ,-]
Corectlnputs:1 Mark 4-,,; {{. Q, i..i '}
Correct Loop : 1 Mark cc,,^i\u-! r,.'','. it1 i d,'-' 'i'i
ConectComputation : 1 Marks
Output: 1 Mark

c)
price-due = 0.0 *i".*
tp = [1 0.00, 12.00, 1 5.00, 1 0.00,25.00,45.00,S0.00,2S.00, 0.00, 1 2.OOl
FT = int(input('iEnter food type : "))
1
I'l-)
while FT !=0:
lQ = int(input("Enter item Quantity: "))
price_due = price_due + lp[FT-1] . le
FT = int(input("Enter food type : ',))
print(price_due)

Note:
1 mark : price due initialization
1 mark : army initialization
1 mark : input food type and Quantity
1 mark : correct loop
1 mark: conect computation

20.9oodndrt*ctcalEooqrsodorr<c(ee€{oooao€o1|q."o,.a(cotlgo€)6oco<c.zoro|qaozr}.*.,omo.oD5dQdr
- on:od4d1 o cczlEooqar erdB@r (€e€ Eeo o6o€o)lc.eoc.o (cod oo€) otoro<r - 2or6f qoaul oooteioa .?re€.t loe
€reo qro.
-/
,.::.'
:.':!i:y',
.:
:::a],,_i.y'-
(J
'.:;,.,..7
r,i s
/f
-,
'i

J
/
a
o
.rt
,"*,
.c Hs:i
'o -9
.'!tt1 4
''ri pa rg
@ g3
ri rJ
a
(!
a^

*i

ag
H Is
L.- ;
i^.l
E#
(^
"
s9fr Es
(Ud
k-

o
..{
c rJ
Ol
"r{
(d
o .{o
o .-t ..{
o +J
.d
c +)
+J c)
ifi.1 o E
zo +)
r: a
.d
I
ir.

l)t E.E
o
e
a
c
H IS
EI
n:.

f
Ut
.r{
a "
s E3
tLt
U)!
(u et
(dd

e
o.
--t
H 9..
c.l:j
Xg''
EE'*
+)
t
(I,

(1 mark for each component)

Kosala Rajapaksha www.itpanthiya.com

WWW.PastPapers.WIKI
ZO Past Papers
- oocde4 oo rorrJEoo(ar WikiEGO- o6oo8olf
ofldo6c3 (ee€ Most q.oooo
Extensive
(Cror$ ooe)Wikipedia of clooodog,
Doooo - ZOre lqOGlEd Past Papers!
q(A€d lsG gCO qr6.

You might also like