0% found this document useful (0 votes)
74 views

Computor Science

This document appears to be an exam paper for a second year science course covering network technologies and the internet. It provides instructions for the exam, which will include multiple choice and written answer questions. Students are provided paper to write their answers on. The exam covers topics like network technologies, internet protocols, web page elements, HTML tags, JavaScript and more. Calculators are permitted but programmable ones are not allowed.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Computor Science

This document appears to be an exam paper for a second year science course covering network technologies and the internet. It provides instructions for the exam, which will include multiple choice and written answer questions. Students are provided paper to write their answers on. The exam covers topics like network technologies, internet protocols, web page elements, HTML tags, JavaScript and more. Calculators are permitted but programmable ones are not allowed.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

-ir*-.

ftnrTfi,S
'r

.,i,
'i 7

rtt
'

tj NI

d
:t!'

\/IiRSIt-y OF COLO}tBOu;;nt
i*Nrca
F/rCLrLTy OF SClnntr.:f

SECO*D YEAII.I'XAMINA'IION

cs 200I -

IN SCIENCE - Si[PrCs,ER
I

Nehvorri'I'ccrrnorogies

'nri
(Threc

,r

nSn,er

Intcrnet

i
;

crlestrons

i{on- Drograrnmsrblc calcrilators arc


I 1: ;rlrorljeo
alloive<i
t

i
I

o,f rl,:1l"rts
r' rc ;.8 91 r, ro gia m n, u g) b n.s
il;:,fi:ll:Tl;::1,:.'_T.j'_u
cJ

A- Nef,r,ork j.crhnn?r,sior.
; t;;6;: (parr
$;il: fi ;l$::ll ;-,;:.;Xl
ffil

20A6

i*groo,*ing,

llours)

eLL

-.

li

:tre Connulro,.'.
i.to. of pages: 1I

/tll cue.sjion.s

.
_6

ilffi

INDEX NO:

'

li;.:1fi,:i;,n[';,:iii'

quc:;tir:n

':'o,:i lr:itr: )iumhcr oit


l:.,icclrot t_it: <h,:.1i1r"r, r.:rr;;rllic

t"r rru,, ;.',r i.ilr.

".-j

ri

zrncJ

".s

p'pcr is not p: inrr:rr


Fr*i*e

iili p,:gcs ri!-.Jt!,, pap,:r.

. tti. ::lctt it

nrob

il

"

pr,

o,ll",

illl..,fi Tiffi

t':'':
.

i'.yt.*: (Qirc.srion 01 & ti2)_r,A{t,i. -;\:


*lit^"
\i,rite t'rc
tiresc que.st icn:i on thc s;riting
J..ilper

i'

tfiat is prr. vitlecl.

al swcrs
:
I

.t
_ rhe fotiow:ir:g
rlr,16 ryr\.\,
MCe r..i!.tutltpl.
. . ._
Ch,ij' :c Qucstiorrs) will
{rr{ultiptc (-hcj
I:fl
.nc'or rnorc corn:cr

lliqi*tt.::ith
'l'hcrc

lll,ltk.:.
qIl
.q,iicss;n!,.:

e v\rr

(.st aut:rL\,(
Ans\\rc!-.s.

will bc a pcnatt_v
.y rQr
for tne.orrc
i
;t re.spooses

spilco proviclcd
ttr11r,ictcrl
:sllil.cc
i-',.'f.

:.,
.;,

to discou.i.,g{

.ri

ji;J'ii:tii,;:iyt,ii,ii-;i
l,: ll:.: lirt)r'r irr;ctt'i'r,r..1,.r,'i.i..jl'
'"'r' \i-ji' ilrr(r )t t(t.,uttJlilif-ri
rvrii,,iir,''"
!';lll:i\\r l':l tt] !lte:;+t1t:cstiOtrs iir tltt '

r?.r;'.,11tr';'r.p,
, ,'af,a | -. lt; \\'I'llt:
.i:rr.:f
1,.,.$",s.4\''r'\'r'ri .r'r

7.vr.ji.-.':r_.r...
{i:!..r.-..,,-.t

hivl,

Ijrr .h
h oucsiinn
qucsiion will
rrri, a,.&,
-.;...
ca#y *qii,

rrirr.cria,,
in rlrn
thc: 11ir,-:.stiorr
pupcr..

.:

1rrtl...r
1

l-iu-l_..\:--lJ

{;ucsiirlrt

ltlillr'

lii;:..

lr-' t's

t'litilgiss'

UI

l.l
t.l

q
l')

l.l
l.)
i.l

\)
\
J
q
0'

'\

:.i
')

'

')

e-

e-

o
b

2.3

'r.l'
'.r.

'rl

"itl

tc:i'rtA

l,' rt)t)ts"

:r .'

':,:i:
, ,"ltt '
!,.-!:'.
::-:')t
.!i-4..
,..{,d1::!

.:..;1.

'..:t:.1,

clii;ittl signal'I"'

i{,*"*
.L
r,,,"

ffi;Hf
!:tt 1

of tlrenr in

:]

web pagc cotttaitts

Iirr'l<s

is/irreirrc'r'rpcr-1sg;rrrring

J.rcrn*

*r:.cr

its

,.a:.

'*

u,eb r:rsource is uniq;rjr'icl.,.r,ined

iiijl

rcso'r...
"iir* comn.,on \,,eb

N;;il:;':;^,*

lt;:;i,1ilH:i[:;.t':]::ilJ:T:$ns
a

tirc

called hyperlinr.:s to other.rveb


p'ge-s and
0,.. ,oi,.

i'tet-scapJ;;;;"J;

i) hrrc-:: i.rfonnati", s;;;;;

rt are the.

roiioru""'"t.'tils

r!:T:!f.E*nro"r,

1?
L (o)

icc rttcclel.?

rlrc

r&I_Ugt leliiqgi:n nutilig

[:-y*

i. no,

2'

"

in re'ar-ri'ie *,irh oirrc^veb


tis,:rs (eiiher.usi

irs LtIli,.

*.i;;;;.,.

\r/hich of trre fotorving


srarcnrcnt/s lvar,g sgrrgct__rcgar.cri'r
.'a'' r t f p ://ryu,rv. g o
LIiiL
o g I c...i
n* g *riiu g o. gi l-,-"
"Vi

(:') "11110, is ,,rc rlrotocor


uscd to ilcccs.s t'i.s ,Jscr,rc,,.
([') "wrvrv.go,rglc.con.:,, is
ltot tf ,* nr,,rrc or.l!rc ur"fr
ra,.,"r.ccrrtlining this r.cs.lurce
ic;) "inrages', is na:::e of a suil_fol,l.;.i;
the web r.rr"r'_rli.rc
fgl) "logo.gip'is nar.c.".f
logo.gif is loc: ted
gr^lrl,i;_f p!:rr fite.
.1 lo"
(c) The w\'vw (worrrr \\/icc
\irliior r;,ripr.,il.,J'.lv"b,is r'c
v,.e-v of shari'.; i'fonn
u!on.
i

the.\, used

l'

foilorving srar'enrcnts islare


sql::legi regu.dinl ihe rveb .pou.oii*
(a) Linux / Unix tre rrrncrl,., r;,.^ .\.-.
liec OPcn Sourcc softrvare.
f')
(b) v,/i,,.r^.,,v/i'dou,s *".i:.^nrostly
Nr/ 2000 consl;;;
,
(c) .Apachc t, n::1,1
no*r.., i...,r,t nrulri platfo'lr ro hr;r,rie
1p.u
:,cb ,".r.ir.
(rr) lVintrorv's g-5lgEiM.
i(c) scrver-siclc techrtorngt "rit irr rirr.l,pc.r.s,n'r i{cb appr crrrini:.s.
t;; uoi g.,,.rotc I{ fMi that cr. :rtains
cric:.1p514.. scriprs
\'\'l'ricrr
of the foilor.,'in*g statemcnta
i:;/are inrrrreci regai.ciing
i-'.t_.i,- rass ?

,l':"

"tl'_r

,;r;;;

# ;;;;ffiXilfif;,;

4'

**r

.::'__-

i ll!fi ; tl{li{., #,',1


iii! :i:fi ft',lf:J:.*
,;;i;";ore

i il
(t')
The basic troe-of tag ir

e
"s

r e *eis enc, c s ed
by ..* il,

u,i

stri'r'rrr! :r ni^.i*., ...^


rag is usec aft,i-;r.
ra'-"-,rniie"' ,,.n,,. ,ri"ii,i.',,iil,#:1;:ii".:tnt
"in
(c) <FONI FACE:,,__',
a crraractcr

(ci) 'I'lrc ,net

,f

5'

wlrat

wourcJ bc thc out'ur.

'::i:lt

wi dt h--"2 02

"fu*r'it,.

firn,

Tyre.

of forcl*,i'g coac

" l>orclcr-=,'

1,, cc l lsp;rc

in

..:

scgr*c't?

g=,, 1,, cc i ip add

rrg=,,.1 T,,.,

:;:lll :ljll]:;,f3, rorr,spnn=,'z,, scopc:,,cot,,>rrcml.ro</ih>


'.:lI
t''J S ". r1r rvsy r' y,,,,i,,
r

'-'<tlr

i
l.spAlt'."2
" .scollc-"col,,).1)ri

::,,111

Co

;;;;;;,,;;;,,:;;:,Tff1
cc.(/llt)

<,/l

1t

-!-; i:

. +:(1

.:il.-:,

r),

-*
4- zr\s.vt(r>--[(l Vyldlh:"j4"-.C]Cn.</ttj>.Vt?ill
.f
i-'lf:llj,Sl;_,f
*.1';;;;ilTuili,?,',1[1;.n.,,,1,.y,;1il

'.Hj:l j:::,:'l:i::l*ltcnrl</rcli'r,r'20.rr.,.ffi j.y"iu,o,,r,


,

:j

j:,,,,:ll, l-<,,r I :

td>.2 0.</r o

>{

;6

d:};,

#;j

s:/t:rblc>
:"

t"
iJ
in

\:

i- i.r,r Ni',r iIj't ,r,,, ii .-..-.t'iict,


r ..iJer:
itts
I
I
,lt

ior- -

;;

;"''
:tJ-1

:-

,:fIr*rnuo ltro,n l*:::

..

" i;; i;,


li,;;; inioo
ir,"n,

- ifilo fto ioc*-

i
i

,lo'
I

:lc:l

lt':v-[ig:lg-

lR:,

flucm b Jzo 'loo


r'--- --' -'''-' .;. -i. ----...! --+1.--------lltcm b, lzo loo
ri----- -"""

.lo2

-*-l--.----l----!--,L'

]9.?

lii::t:

H_lo11

,_

ia)

{c'i

(d)

(e)
Fio""'
vou crcate the [oilr.voing output in J-iTIvfI,? writc dcw'
the rclevarr,:tags ir, thc
""otlld
spifegive:rbelor,.r

t--

l:
I

_-----l

ilio Scisnce .

:i, Zooiogf

b Cher^risrry

I
I
I

(:.

-[:\c.'[any

i.

.l

Genedcs

ii.

,t

lr

lr

Diversiry
Physical Science
o Applied }da{is
. ?hysics

i'i
Li j'*l'":::_
:

_l

i
i

'i

;:i;:ri"t"n

tire ncccr.s:;rri-r r'r rj\4L lag:: [o


r]crrcrE.rc lrre IbrJ'y,,irp our
pui

i,,t," giu.., uli

Studeme' Fetaills

.l

i:'
't:::':

..:!

irt llrr:

I
I
I

_l

Nr);

(.r)

i -:t"rlti

(l))
(t:)

.l

lrOii

"ijt

i'tir..:c=.
t' ..ii,.,-, -',

":rliitl"> N,ii lrirst Wcir !';1gg.'r/ijont;


''2()";,

)l'.1 l'r:uior- .,''//iri

N.,{

ri:cr

-v i;i
1.1

LJsing. tir,-: abo1.c thl'g. .statctllr:nts.


salltc or.rI Dul.

.:l'

(.1:'cirtu' ir

I'sl \\/cl': l)agc<,tl?o11t),

"...'

i",l

y I ji i'st

writc

\\/r: I r l)tr gc.:.'/ljt l rtt.:

a sirrgle tag rvitlr rn,.rltiple

attril utcs

tcr

gct rlic

(lSili iiic using, a r;li15,t selcctor (Cllas:; rrnillc is prrgcl) lor tlre lcrlt,:,ving styles arri

inscrl ut)t'l'uttI

.s'i

rr

rll,.rls vi'hcrc ucccs::ilt'i,.

I
i
I

'l

tf
I
I

I
I
I

I
I

10. lv irich

-"!

\"

r'
i

(a)
(b)
(c)
(d)
(")

r.i

!'

| .'

lir i ! orvi r1; i siarc.. cr: r'l'c


r

c!.'l

Jitvi'ijcript can read ar.C n'rite l-11'ML elerneut.s.


JavaScrilit trnatric to ,lalidalc clata on :licrtt s;idc.
.llvaScript car nu.t bc usecl to clctect [, u visitor's bro'rvser.
.!iivi'.Sicrit:t Ncvcr ailorvs lo crcatc cilt ..ics,
j.rvrtlicripi clccs not a!low reacting on cvctlt:.

ucstitln

\'hich olthc l'ollo'.r'ing is/lrr,'_c'orrcr('?


t.'"1tr)

irc

()'1

t.

.lrrvllScript-i:j ;r ('licrri-:,i,1.::;criPtirrll

1,,,,1,,,,,1,,.., r,.lrilt-'

I'l I l' is :r St.n,cr'-siclc( .sc.rilttiug,

.le.nguagc.

(b)'Eiecution orcler is irlon-secluential (Event drii'en) in PI'lP and Sequential (Top to


' irottottt) in .lrtr':tScript.
it1.; yourlocal PC is thc Icb Scrvcr, vou carlnor copyphp filcs inro it.
tf
i\/
'\ (d) JavlScript is executccl u'hen en evenl occuis fl::vunt-drivcr') Lrut php is e..:ecu;eci whr;r
tlrc pug,-' ll',.rrtr Wcb Sct'r'cr.
i
(e) JavrrScript crnbedcct in htnrl lrlcs canrtot Lrc :.;i,i'c(l ns .lrt:ni rvliilc prltp liics cilir bc
ur.ior rc(lucst

rud

sat,ed as

,l

.ptrp

rri

:.

You ner:d to crcatc a scparzrtc tc;ii filc (count.txt) th;rl cgnterin:; inl)- :r singlc characler "0".,
then uplcrd the file onto tlre sanre ciirectorv creatin.g :i Sirnpl' Acce:;s Counl.er prog,rem{:
using a :P]-IP file anc{ clisplay "You arc tirc <?pl:gr ccbu Sct;trn : }.-si, n,-}. ;'rl, tir gur-.n:i I I
.

.;4...(,.1i...:
.- .'l.rr',.at,.

]'

I-lotv,do you view thc lollou,ing cntitics r"r:;ing Itcr:rs a.ncl IJranch tables'? Errtitics require'J r:e
i_no, i_nanrc, qty, b_no, lt_narnc. Writc dorvn the SQL comrnend t-o join thc two tabls; i-.r d
"
.;ji
get thc correct

output?

it6ms tdble

_w;t_ll}lal:cL

00.i I :.x)2-07-03

._

'

{il

inrlur Li{):
r- nO.

-nonr(.

,r.fi.!.

. .t.

.+.(.E.

...

.T,

.?.8.?i;.8 ..?+v....

\4 b.l{

s. .'. ] .t:..,r. p'.

.,.' .

.!11.'n.c,nro,.

.i*rl.V.. ..,

f?orf.. . .. i..:c.r1 ..1i.q.Ql.e. s. . r., . .. ..{3rq....h.

.'d. Fi

.4:le

".

z . .A t o,t, n.

.t'i.i.. no- l

t
s

.1

\\'r'ilc tlirwii ll)r: c()n'cci S(.:i.:;tlrtcr',tspl tp gut tlrc Jc,tiiils 9{'u pcrStlp ly[1rsc rrscrid
a6rlr
I:;)til(' :ri'c l() 0(ilf :r;rtl li.l.:rri'-,ri..siicctivcl.y lilipr tir,,: ll-si:r.s ilblu,i
. ..,.:.. .f .9.i". L ...

i..f.:c.lt,
.

...i/i.f,:.1. .......

.lr.it'i.,, *. .{. .'.'.i.l. :. :..'.ii. r,,.. .o.?. I.?.... )...

ll ;\,..r i.liir,'

itr iirt. ti:ii,r.,,.ii:'1 i,ili)lir.r.irrt, rvltrt \\trulr.! lrc (lrc r.\llcctc\l fcstrll,i (iir.it:I.y iiirr.str;rr

:,

(1,niri:
<'I)nil

...

i.b.cc.r.

...

. rtno..

..

14 I

li .i

.....

:/:l n...

iir,lts'.,.-li)gij:Sr;.: :ii.,r.g:(,...,,,\.$;..,-)1| |.Lthrl.r....ii:1::lT.:-'....,tj.qr:;...+.'.+{.....in.....


Cclll;'.1i:::li..rii.,1i.r..i,,.:;lii:lr]'.....,.'.i|.9..'.''i.l.....,.:.j,'..:,.....1.
'.':i('it.i

'ii;;

:'i

.:1

....:i,
.

-jrl

::..i'

i:1
;:Lt:'
.: t'-+ir:
i*Y.i$

rll.+
-:r{i

-.,

':'..d:.t'1'

iil!:

:1.f;tl

'.r. :ii
' .il*r.
'

i'-i:r+

.."i.-:iHr

.,,:'Ji:t

'

:+iii.
.:.l.J.l:
'L l.

Fl

" ;'itljtii
i..tiili.:

...J;:;

j
''

'r
'':';';'':'t

arr.:

..r
'

-'-__.---*J
'ncftrrc s()rlciing

.t+.(.{.

:,.t

i(-)

il
I

thc (lltillfr:riic'

..L.1'q.r.c,i' :.?''t'i: t'nti:'

.i''t':

i..l

'.i
i::

F'
hr

;i

+,

,ts

:i.

;t

::riC ancl

?.

Which of the foliou'ing(s) isiarre correci

.l
:1

irtcractic;nsbctrvcc,asingleclic't:Jlclirv/ei

,!i

(a) /rscss!orrinpririsnc,ascricsofrclate(r
sencr
pcriori of tirn':'
rot trkc 1:lacc.('v1.a:r t.-.tlt]]::tC
clocs
php
in
tt llit.rrion

ir

t;l

,J

(c)l';essioninphpisaret}toctcrfrnilkingDalapcrsilii.evellrvltclryoucr:itCItcpl$ei}il)
cookies' btrt in PHP sessio'ls are
ilaggs),^ses:l:T
s,*"'
(d)
i:"-::tl'1.1::.'o;t'vith the Clie't's bror"ssr'
ii'conrlnuitica-tiorl
i5,cJeircncler.n'"nJrror.rt inlhe Servcr
in pariii "i r
uscc 10 siilrucf3iric or rcr;urrie * sessi'Jn
is
sessio'_start0
caiieci
(e) 4 function

,f,
rf;

ffillil::il'.

.4l
-,*

.tiT
:i

'-''iiebpage.

-f iliustnt,

niln)b,,'r (i;)
wiite dorvn brief crcscriprtioris for c*restior

.r*cr

,{

t
(9) acoorrii'g ic tire L"\'en ke:t'

',-I
:}

,li

rvorcls.

1*.

i. issctQ.

.i

.i

f. is_inlfl

,':7.

i:
0.

..tl'r',,,'rr

\\ r
!)i;l

i!ri: l)!-iir l:o(!i: lo rii:;1;ll:,,,rrli i.cc.r.tls i*

rr:;in11

l:,''::i tr:tiltC:ltrC;tlirtiSt

.
'r )

ll),(.'l

..

it:tltlC : l ilrli

f'., i);i..;,i\\.()lfi :"


rl;r r ;rl r:'rsc_.

!.:

i..ti)

1,*.-. i

.nl

I I tr.' i.'ri,

ii lvlviiQi.. tirtrlc

''v.

/*

ir: : pliysl

rir::t,.. :r;ltt,_ i

lr' r;!., r: r !,.1 lt,.

!.1i.t,i l

"

::i I

I 1,.. I

.n:j

CiCri r.:(j

il i ...tl .r .,,, i l, ir,,

l.',.rllnr:Cl

:.;:

ln irli.,}i(.)i. ii:ii:illit:;e y I

A,
l.l,f.:<.
.,.. t'nyjZ
.

clr i _.i(iittl

I..

X.l. .-.r...i:. r.i. :.ei H.

+
.1,. \)t
......'t_.r.itt i.t-

J.

..i,-

'

f'.-v:;';;

+ii:trr,,.1..,i.
1i.1.
'ii.i!\:..

'1i,

./*Orrtnut rcsLrlls as l.j'il.,iL. tableli

ihc cl,:t:rils lti,/cn

.5.

6.

i.

: 0'ctl

g: 0"3 0

IT
I

4
n.:

L '- o "12

o:
t:

41.

;+

o"E
o,o

'l

,|

;.:

{l

.L.l

o.
' o'{)

A. rae-

A.

)/\

b'90

_9.

i,"rf$"

o.rt.

6,

.lP.

c
:

?S.L,

JHP

-{srn a,clro,t = * 8. Pb P t' --t ,thol = bosT"


1 rn pn4 4lp. F i.af ' n^-, = S.f .- n4rno"
n novtot a s'{- {rltl )
=
i r4P4{ +tt f, = '4141
(tnprrt 'ttlfr G "-lczt{" nt4nQ =u s+-,J" 2
( Seltc'l n4mQ = ",'{ cot.'s! 2
'-.

< /se lec'l )

a<Y

u
's{- s, z W tl^ la'r o = mqk a\mq
rr4tr)l
r4,l'o"
'l.
r
lrrpq'f
=
't1Ft
{
u
e.
: S{- 9r z vq.lqc ' leqqlt 2 &':
i ,o Pq'l 'f Yf , e ",q!' 6' nqnt
.<
o
':
Sqbnt'I"
e
s
"S^hmt4'
rnlqQ
ltopn'f aYe{

/t"

..

fr'

'::

r;

!:r

.'

t.':

tri

{-hrg Lo*^r'tt
-.-rJ

!ocnlhos'l

savt

ai 'lh1

/trltn't'nQ "" h4'ul i

+'

c y{, ,ogr^n fvfacht

grr,^o

,t:: I
:,, i.

lll

") nv tte
k a'nls {-connc,: t('?:i,r*d,t" o{,"
m1s1l- sc t,ci- Jr (*e s'lp 6m4 ' ' J'e i
.f

.{tv s l.

oPrn

.''i

..-i:

/ry'Ei

3'

f,o

$ttt

= ',sELEcr

r F?orL e+ra

tftt1)

(q|.f tt ) o(
re su t{ = 'nt1s1l- 1J4e
$
''
.^ ,_"

a{,,b.se
Jre; -----=_]"'t";Jrac-

..

tX;ff
--lrr;i

------------------,

rcd,',i
J^hLe-t>n;:,
--------------., s^h
::'

i4[>
peoso-'<t
bo6lee9=r't>')
/
i,..
.
\c
rcho(.Tl.art
rth'a\/4Tblt
\(
r.
tJ
+
+J
J{'c
t
lJ s (f
nt41zl;nutD-&r
lJ
j
o
<
"esu'tdJi
($+retJ.=
$.fte
{0,
o
\n
echo kd rr >,'n6s{-{t lJ - 4 't*,t ('frcs"ryt , {$r IJJ ' d/+h >

dl-y lc (.fl,ne

ysal
- n,1s{- ,.ft'lc h - qrr^q(f res'l I 4 ' na

You might also like