Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Page 1 of 12

AGA KHAN UNIVERSITY EXAMINATION BOARD

SECONDARY SCHOOL CERTIFICATE

CLASS X

ANNUAL EXAMINATIONS (THEORY) 2023

Computer Science Paper II

on for
Time: 1 hour 50 minutes Marks: 25

ng 3
ly
ni 02
an in EB
ar 2
Le on
-
ng am U
d ati
INSTRUCTIONS
hi x K

Please read the following instructions carefully.


ac l E A

1. Check your name and school information. Sign if it is accurate.

I agree that this is my name and school.


Candidate’s Signature
Te ua
nn

RUBRIC
A

2. There are SIX questions. Answer ALL questions. Questions 5 and 6 each offer TWO choices.
Attempt any ONE choice from each.

3. When answering the questions:

Read each question carefully.


Use a black pointer to write your answers. DO NOT write your answers in pencil.
Use a black pencil for diagrams. DO NOT use coloured pencils.
DO NOT use staples, paper clips, glue, correcting fluid or ink erasers.
Complete your answer in the allocated space only. DO NOT write outside the answer box.

4. The marks for the questions are shown in brackets ( ).

5. You may use a simple calculator if you wish.

S2302-0921120
Page 2 of 12

Q.1. (Total 2 Marks)

Write the name and draw the flowchart symbol in front of each description in the given table.

Flowchart
Description Name
Symbol

All the calculations appear inside this symbol.

on for
It is used to connect various flowchart symbols.

ng 3
ly
ni 02
an in EB
ar 2
Q.2. Le on (Total 3 Marks)

A C program is written to take three integers with different values as an input and also identify the
-

largest number amongst them.


ng am U
d ati
Write the missing code in the given box to achieve the mentioned task.
hi x K

#include <stdio.h>
ac l E A

int main() {
int n1, n2, n3;
printf("Enter three different numbers: \n");
scanf("%d %d %d", &n1, &n2, &n3);
Te ua
nn
A

return 0;
}

S2302-0921120
Page 3 of 12

Q.3. (Total 3 Marks)

Consider the following C program.

#include <stdio.h>
int main() {
int m=27;
int n=36;
do
{
printf("\n%d", n);

on for
n-=3;
}
while (m<n);

ng 3
ly
return 0;

ni 02
}
an in EB
ar 2
Complete the trace table for the given program.
Le on
M n Output
-
ng am U

27 36
d ati
hi x K
ac l E A
Te ua
nn
A

PLEASE TURN OVER THE PAGE


S2302-0921120
Page 4 of 12

Q.4. (Total 5 Marks)

Two switches, L and M, send values of 0 and 1 to a logic circuit respectively. Value X is the output of
the logic circuit.
L
Logic Circuit Output X
M

Output X has a value of 1 with the following conditions:

on for
Switch L sends value 1 AND switch M sends value 0

ng 3
OR

ly
ni 02
Switch L sends value 0 AND switch M sends value 0
OR
an in EB
ar 2
Switch L sends value 1 AND switch M sends value 1
Le on
-

i. Draw the logic circuit to represent the given conditions.


ng am U
d ati

Space for Logic Circuit


hi x K
ac l E A
Te ua
nn
A

S2302-0921120
Page 5 of 12

ii. Complete the truth table for the logic circuit drawn in part i.
(Note: Show your working in the given working space. Without working NO mark will be
awarded.)

L M Working Space X

0 0

0 1

on for
1 0

ng 3
ly
ni 02
1 1
an in EB
ar 2
Le on
-
ng am U
d ati
hi x K
ac l E A
Te ua
nn
A

PLEASE TURN OVER THE PAGE


S2302-0921120
Page 6 of 12

Q.5. (Total 6 Marks)


EITHER
a. Write a C program to print the salary of an employee according to the given conditions.

(Note: Take years of service and gender as an input.)

Gender Years of Service Salary


>= 5 150000
Male

on for
<5 100000
>= 5 200000
Female

ng 3
ly
<5 150000

ni 02
OR
an in EB
b. Write a C program to
ar 2
Le on
take a number ‘n’ as an input.
-

i.
ng am U
d ati
ii. print ‘n’ even numbers.
hi x K

iii. print the sum of those even numbers.


ac l E A

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________
Te ua

___________________________________________________________________________________
nn

___________________________________________________________________________________
A

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

S2302-0921120
Page 7 of 12

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

on for
___________________________________________________________________________________

ng 3
ly
ni 02
an in EB
ar 2
Le on
-
ng am U
d ati
hi x K
ac l E A
Te ua
nn
A

PLEASE TURN OVER THE PAGE


S2302-0921120
Page 8 of 12

Q.6. (Total 6 Marks)

EITHER

a.
i. Describe authentication and authorisation. (2 Marks)

ii. Describe TWO methods for Two Factor Authentication (2FA). (4 Marks)

OR

on for
b. Describe the following types of hackers:

i. White Hat Hacker (2 Marks)

ng 3
ly
ii. Black Hat Hacker (2 Marks)

ni 02
iii. Green Hat Hacker (2 Marks)
an in EB
ar 2
___________________________________________________________________________________
Le on
-

___________________________________________________________________________________
ng am U
d ati

___________________________________________________________________________________
hi x K
ac l E A

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________
Te ua

___________________________________________________________________________________
nn

___________________________________________________________________________________
A

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

S2302-0921120
Page 9 of 12

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

on for
ng 3
ly
ni 02
an in EB
ar 2
Le on
-
ng am U
d ati
hi x K
ac l E A
Te ua
nn
A

END OF PAPER
S2302-0921120
S2302-0921120
Page 10 of 12

A
nn
Te ua
ac l E A
hi x K
ng am U
an in EB -
d ati
Le on
ar 2
ni 02
ng 3
on for
ly
A

S2302-0921120
Page 11 of 12

nn
Te ua
ac l E A
hi x K
ng am U
an in EB -
d ati
Le on
ar 2
ni 02
ng 3
on for
ly
S2302-0921120
Page 12 of 12

A
nn
Te ua
ac l E A
hi x K
ng am U
an in EB -
d ati
Le on
ar 2
ni 02
ng 3
on for
ly

You might also like