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

LYCEUM INTERNATIONAL SCHOOL

FIRST SEMESTER EXAMINATION - MARCH 2017


COMPUTER SCIENCE
PAPER II
9 .......... (Cambridge)
Duration : 1 hour & 45 minutes
[Total = 50 marks]
Instructions : Candidates answer on the Question Paper.
No Additional Materials are required.
READ THESE INSTRUCTIONS FIRST
Write your admission number and name in the spaces at the bottom of this page.
Write in dark blue or black pen.
You may use an HB pencil for any diagrams, graphs or rough working.
Do not use staples, paper clips, glue or correction fluid.
Calculators must not be used in this paper.
Answer all questions.
No marks will be awarded for using brand names of software packages or
hardware.
At the end of the examination, fasten all your work securely together.
The number of marks is given in brackets [ ] at the end of each question or part
question.

Candidate's name : ......................................................... Admission no : ............................


1

1. (i) List three uses of database.


----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
(3 marks)

(ii) Why databases are very useful ?


(a) --------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------

(b) --------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------

(ac) --------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
(3 marks)
[Total = 6 marks]

contd.....to page 2
2
Grade 9 Computer Science - II contd.....from page 1
2. The following fields are available in a database named PERSONAL_DETAILS.

PERSONAL_DETAIL
Name
NIC
DOB
Address
Gender
Contact No

(i) Identify a suitable primary key.


----------------------------------------------------------------------------------------------------------
(2 marks)

(ii) Give a suitable data type and a validation rule for each of the given field.

Field name Data type Validation rule

(12 marks)
[Total = 14 marks]

contd.....to page 3
3
Grade 9 Computer Science – II contd.....from page 2
3. Write down the commands to draw the following shape.

Each square is 10 cm × 10 cm.


Each diagonal line is 14 cm.

Start Stop

Logo Command Meaning of the command


FORWARD n Move n cm in a forward direction
BACKWARD n Move n cm in a backward direction
RIGHT t Turn right t degrees
LEFT t Turn left t degrees
PENUP Left the drawing pen
PENDOWN Lower the pen
REPEAT x Repeat next set of instruction x time
ENDREPEAT Finish the repeat

---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
---------------------------------------------------- ----------------------------------------------------
[Total = 10 marks]
contd.....to page 4
4
Grade 9 Computer Science – II contd.....from page 3
4. Study the given flow chart and trace the table by using the following test data.
42, 6400, –80

START

INPUT number

count 1

T number

number number/10
END
is number Yes
<17 OUTPUT
T, count
No
count count + 1

Number Count T Output

[Total = 8 marks]
contd.....to page 5
5
Grade 9 Computer Science – II contd.....from page 4
5. Find out three errors and state the corection piece of code.

(i) Input the number of people buying some tickets at $5 each. A 10 % discount is
given if three or more tickets are bought. The printed tickets are output.

(1) Input no_ppl


(2) Cost no_ppl*5
(3) If no_ppl>4 then cost cost*0.10
(4) For x 0 to no_ppl
(5) Print ticket
(6) Next x

Liner no : ------------------------------------------------------------------------------------
Correction : ------------------------------------------------------------------------------------

Line no : -------------------------------------------------------------------------------------
Correction : -------------------------------------------------------------------------------------

Line no : ------------------------------------------------------------------------------------
Correction : ------------------------------------------------------------------------------------
(6 marks)

contd.....to page 6
6
Grade 9 Computer Science – II contd.....from page 5
(ii) The average marks of the 500 students in a school are being entered. Write an algorithm
using pseudo code, which input all 500 average marks and output how many students
were more than 75 or less than 75 average marks.
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
(6 marks)
[Total = 12 marks]

END

Ref : CH

You might also like