Page 1
f
3
ANSWEB KEY
I]IRST'YEAIT tIIGIIT.]R SI.]CONDN RY MN RCII 2425
PAR'I'III
tiud JII c'I': c OMPU'I'I1R APPL I CA'I'I ON (C OMMLIRC Fl)
CODLT NO: I;\'346 VFIRSION: b
60 SCORF] 2 IIOURS
Qn.
' S-ub,
Answer KeyA/alue Points Score
No Qnsr Score
8 1
iii) oMR I 1
Documentation 1 ,1
4
5
Variable
10
-,,,- -i
:
lidint.*eT 1
1
I
/v.,rton eerl/V,*
I j
b Vrnton Gray Cer{ 1
-j
a
:
l 01 ), 1
7 2 i
b) 10)' 1
I
e use 16 oi moie oits foi eacrr I
e can represent data in almost all written
8 1+1 I
I
languages of the world.
(OR any two valid points)
q i 4 x'lr=) 2
Reus(, Recycle, lncineration, Land filling
srep I : Siart -
J
^r--
Step d lnput h1, h2
Step C if ( h 1> h2) Then
Step 4 : Print h1
10 Step 5 : Else 2 /_
Step6:Pnnth2
Step 7 End of if
Step Stop
(co algorithm 2 marks, correct structure 1 mark)
a-) error
11 2
b) Logical error
Any 4 valid rules of identifier naming 4 x tl..2 2
gnment operator - us ed to store constants,
variables or expressions to a variable.
1Q b) lVlodulus (mod) operator - used to calculate remainder
IJ 1+1 2
of an integer division operation
(OR qny valid point for both OR correct example)
(Nam! of operator only - r/. marks each)
2 I
fo
14 tatse ?
..,,'i i
Page 2
n3
mp type conve rsron ype a x
1
type conversion / Type casting with correct I
explanation
15 1 2
OR
any valid example
(name only - 11, mark each)
if(i1>n2)
big=n 1 '
16 2 2
else
big=n2',
aOlo WAVCS, ml cro wave S
17 1+1 2
(Any two with a valid poi nl)
ment to to
18 citizen(G2C), Government to Business(G2B), 4x11, 2
Government to Employee(G2E)
19 (convert to binary 1 mark, convert to 1's complement ? 3
1 mark, convert to 2's complement 1 mark)
)n ?
1+1+1
Any 3 valid comparison( 1 mark each)
ugg ng e ng a ng
errors.
21 3
b) Syntax error, Logical erroy,
r+r
int
ldentifier : surn
22 Literal :123,"hello" 6 x'1, 3
Operator : +
Punctuator : #
23 Unary, Binary, Ternary operators with i 1+1+1 3
using namespace std;
int main0
i
int score*1, score_2, score_3;
float avg;
cout << "Enter the three scores: ";
cin >> score_1 >> score*2 >> score_3;
24 avg = (score_1 + score_2 + score_3)/ 3.0; ? 2
cout << "Average CE score is: " << avg;
return 0;
)
OR
program with correct logic
( correct structure - 1 r/, marks, correct variable
declaration - 11, mark)
1+1+1
Any 3 valid comparison of both switch and else if OR
ladder ffi __,.-_-l
Page 3
3
I OR
a)
correct examples of both
Tiansmisslbn I Protocol/l
tr
26 b) Hyper Text Transfer protocol
c) Domain Name System ;
ac
27
?
a) ?
28 b) Hacking
c) SpamlJunk mail
ET, ext, on ne ot, - content,
Educational TV channels (OR any other valid tools)
29
with one use J 3
(Name of tool only - 11, mark each , max. 111 marks)
,
a pe ng syste mtsaset programs ata as an
interface between the user and computer hardware
b) ;Functions of Operating system with valid explanation
(Memory lVlanagement, process Management, 1+'l +1r1
5
Device lVanagement, File IVlanagement)
(Na of functrons only - '1, mark each)
o) 2
4
b) No le is an entry controlled loop. As the
initial of i=5 and the condition for entry to loop is 2
i<5, th loop wiltnever be executed.
q
c) int i= 1;
do
{
if (io/o21=91 2
cout]<i <<"\n,,,
*+ii
)while(i<5);
o way ln wilich th-e-nodes are
d)
interco to form a network
32
Bus, Ring, Star, tVlesh topologies with valid 5
b)
explanation OR correct diagram + + .{.
(Name of topology only 11, mark each
Page 4
I g" D I vf,)"rr
a
&,, &eroy,R ,trll ,t+14
qqhl g 14o qt
A , -5 o ot'l eGR. Ps hrttmnan tt*J Eorrctkuuot'
P Et-Er.kftD. ? o sZ7z5/5o
4 ' /9a-, oc:7 -T 7HSg. D-=9a^/,1pz->f,a,=r>- Da-)e_ppz-,v*->
4-)ap;>4)<za-y,), g gg5)+ \LZZ 0fiq
5 M a"e oq VaUAas(, A N/l MH{:; , E{*g*-n
qqqrlYrsgg ?
6 Vrgru+ha l-1,, Guss \alapatanqn- kannurd
4+qagwgSq
1 Nqne"ku*^o C, , CM g++ss / T\.riss,,ry
1Zs1i DEl7 Z
I t'to.1Loo\' t\o'c\\l\1' v \\(c rr\ ^ Annez'n \\ 35 rl(e c-U'a-,tr
qh\a6t 6 s2 ?
q. $dh$ *rnn"Q Scrut eel Gnrt hss Vy'lhrd, , w*(utr*\
E.sqg sg 3L4t/
Q*,9 w