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

Computer Science SSC II Paper II

PST PAPER SSC II
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Computer Science SSC II Paper II

PST PAPER SSC II
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Page 1 of 12

AGA KHAN UNIVERSITY EXAMINATION BOARD

SECONDARY SCHOOL CERTIFICATE

CLASS X EXAMINATION

APRIL/ MAY 2019

Computer Science Paper II

Time: 2 hours 20 minutes Marks: 40

ly
9

on
01
& r y2

ng
ni
ng fo a

INSTRUCTIONS
/M

ar
Le

Please read the following instructions carefully.


ril

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


Ap

I agree that this is my name and school.


Candidate’s Signature
hi
ac
Te

RUBRIC
2. There are EIGHT questions. Answer ALL questions. Questions 7 and 8 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 ( ).

S1902-0921120
Page 2 of 12

Q.1. (Total 5 Marks)

An algorithm is a step by step solution to a given problem.


Read all FOUR steps of an algorithm and draw a flowchart for it.
1. Assign the value 0 to the variables SUM and N respectively.
2. Apply an increment on N by 1 and store the new value back in variable N.
3. Add the values of SUM and N. Store the result back in SUM variable.
4. If the value of N is equal to 50, then print the value of SUM otherwise repeat the steps 2, 3 and 4
until the value of N is equal to 50.
(Note: Use the same variable names in flowchart that are given in the algorithm.)
Space for Flowchart

ly
9

on
01
& r y2

ng
ni
ng fo a
/M

ar
Le
ril
Ap
hi
ac
Te

S1902-0921120
Page 3 of 12

Q.2. (Total 5 Marks)

a. Write a GW-BASIC program that

• inputs current (I) and voltage (V) value.

• calculates and outputs power (P) value.

(Note: Formula for power is P = I × V) (3 Marks)

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

ly
9

on
___________________________________________________________________________________
01
___________________________________________________________________________________
& r y2

ng
ni
ng fo a

b. Determine whether the following expressions of GW-BASIC will be evaluated as TRUE (1) or
/M

ar

FALSE (0). (2 Marks)


Le

GW-BASIC Expression True/ False


ril
Ap

PRINT (3 * 3 / 3) > 3
PRINT (20 MOD 7) < 8
PRINT (5 + 5 - 5 * 5 / 5) = 5
hi

PRINT (1 AND 0 OR 1 AND 0) = 1


ac
Te

PLEASE TURN OVER THE PAGE


S1902-0921120
Page 4 of 12

Q.3. (Total 5 Marks)

a. Read the given GW-BASIC program. (4 Marks)

10 X=5
20 Y=7
30 PRINT X
40 PRINT Y
50 FOR Z = 1 TO 3
60 X=X+Y
70 PRINT X
80 Y=X
90 NEXT Z
100 PRINT Y

Refer this program to complete the given table with the values of X, Y, Z and their respective

ly
output values.
9

on
01
Line Number X Y Z Output
& r y2

10 5
ng
ni
20 7
ng fo a
/M

ar

30 5
Le

40 7
ril

50
Ap

60
70
hi

80
ac

50
Te

60
70
80
50
60
70
80
100 48

S1902-0921120
Page 5 of 12

b. In Computer Science examination, a student wrote the following working of IF…ELSE


statement.

‘An IF…ELSE statement executes IF-block statements when the condition is false and ELSE-
block statements when the condition is true.’

However, there are two errors in this statement. Rewrite the correct statement after removing the
errors. (1 Mark)

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

ly
9

on
01
& r y2

ng
ni
ng fo a
/M

ar
Le
ril
Ap
hi
ac
Te

PLEASE TURN OVER THE PAGE


S1902-0921120
Page 6 of 12

Q.4. (Total 4 Marks)

Read the given GW BASIC program to answer the following questions.

10 CLS
20 DIM A(15)
30 FOR X = 1 TO 15
40 INPUT A(X)
50 PRINT A(X) * A(X)
60 NEXT X
70 END

a. What is the data type of array A? (1 Mark)

___________________________________________________________________________________

ly
9
___________________________________________________________________________________

on
01
b. Infer the purpose of this program. (1 Mark)
& r y2

ng
___________________________________________________________________________________
ni
ng fo a
/M

ar
___________________________________________________________________________________
Le
ril

c. The subscript of array A is changed to 22. Rewrite line 30 to input 22 values in array A.
Ap

(1 Mark)

___________________________________________________________________________________

___________________________________________________________________________________
hi
ac

d. Rewrite line 50 of this program so that it subtracts 5 from each element of array A and prints the
Te

result. (1 Mark)

___________________________________________________________________________________

___________________________________________________________________________________

S1902-0921120
Page 7 of 12

Q.5. (Total 3 Marks)

Write a GW-BASIC program that

• contains user-defined function named EQU to solve the equation Z = 2X + 3Y – 2


• inputs two numeric values.
• calls the function EQU and outputs value.

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

ly
___________________________________________________________________________________
9

on
01
___________________________________________________________________________________
& r y2

Q.6.
ng (Total 3 Marks)
ni
Complete the truth table for the given Boolean expression.
ng fo a
/M

ar

X = A + (B ⋅ C)
Le
ril

A B C A B ⋅C X = A + (B . C)
Ap

0 0 0
0 0 1
hi

0 1 0
ac

0 1 1
1 0 0
Te

1 0 1
1 1 0
1 1 1

PLEASE TURN OVER THE PAGE


S1902-0921120
Page 8 of 12

Q.7. (Total 8 Marks)

EITHER

a. Describe any FOUR positive and any FOUR negative impacts of computer on society.

OR

b. Describe the importance of having licence of a computer software from the users’ point of view
in FOUR points and the owner’s (one who owns and sells software) point of view in FOUR
points.

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

ly
9

on
___________________________________________________________________________________
01
___________________________________________________________________________________
& r y2

ng
___________________________________________________________________________________
ni
ng fo a
/M

ar

___________________________________________________________________________________
Le

___________________________________________________________________________________
ril
Ap

___________________________________________________________________________________

___________________________________________________________________________________
hi

___________________________________________________________________________________
ac

___________________________________________________________________________________
Te

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

S1902-0921120
Page 9 of 12

Q.8. (Total 7 Marks)


EITHER
a. Write a GW-BASIC program to be used in a restaurant that

• inputs total number of items purchased by each customer.


• inputs the price of each item and adds them to get the total price.
• calculates 13% as tax amount on the total bill.
Formula to Calculate Tax = Total Price × 0.13
• adds total price and tax amount to get the amount of total bill.
• outputs the amount of total bill.
• calculates and outputs the service charges according to the given criteria.

Total Bill Service Charges

ly
1 to 10000 Rupees 250

on
01
More than 10000 Rupees 500
& r y2

ng
OR
b. A cab service (taxi car) needs a program to calculate the bill of customers.
ni
ng fo a
/M

Write a GW-BASIC program for the cab service that


ar


Le

inputs number of kilometres travelled.


ril

• charges 30 rupees per kilometre for initial 5 kilometres.


Ap

• charges 25 rupees for each kilometre after 5 kilometres.


• adds fixed amount of 50 rupees in total charges.
• outputs the bill.
hi

___________________________________________________________________________________
ac

___________________________________________________________________________________
Te

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

PLEASE TURN OVER THE PAGE


S1902-0921120
Page 10 of 12

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

ly
9

on
01
& r y2

ng
ni
ng fo a
/M

ar
Le
ril
Ap
hi
ac
Te

END OF PAPER
S1902-0921120
S1902-0921120
Page 11 of 12

Te Ap
ac ril
hi /M
ng fo a
& r y2
Le 01
ar 9
ni
ng
on
ly
S1902-0921120
Page 12 of 12

Te Ap
ac ril
hi /M
ng fo a
& r y2
Le 01
ar 9
ni
ng
on
ly

You might also like