Вы находитесь на странице: 1из 6

2

RIVERTON ACADEMY INTERNAL EXAMINATION


NAME……………………………………………………………………….CLASS……………….
COMPUTER SCIENCE
FORM 3 FRIDAY TEST
SYLLABUS CODE 0478/1
TIME 50 minutes
DATE OF EXAM: 31 MAY 2019 TIME: A.M
Candidates answer on the question paper
Additional Materials: NONE
INSTRUCTIONS TO CANDIDATES
1.Write your name and class in the space at the top of this page.
2.Answer all the questions in the spaces provided. If additional space is required, you should use the
lined page at the end of this question paper. The question number(s) must be clearly shown.
3. The use of an electronic calculator is NOT expected.
4. You are reminded of the need for clear presentation in your answers.
5. The number of marks is given in brackets [ ] at the end of each question or part question.
Total marks: 35
3

1. (a) Give two reasons why a programmer would choose to write code in a low-level language.

1 ................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

2 ................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................
[2]

(b) High-level languages require either an interpreter or a compiler to translate the program.

The table below lists a number of statements about language translators.

Tick (3) to show which statements refer to interpreters and which refer to compilers.

Statements Interpreter (3) Compiler (3)


Translates the source code into machine code
all at once

Produces an executable file in machine code

Executes a high-level language program one


instruction at a time
Once translated, the translator does not need to
be present for the program to run

An executable file is produced

[5]

(c)State four functions of an operating system.

1 .......................................................................................................................................................

2 .......................................................................................................................................................

3 .......................................................................................................................................................

4 .......................................................................................................................................................
[4]

[Turn over
4
2.A computer uses an 8-bit register.

The 8-bit register contains binary integers.

(a) Write the denary (base 10) value represented by:

128 64 32 16 8 4 2 1

0 1 1 1 0 0 0 0

...............................................................................................................................................[1]

(b) All the bits in the register are shifted one place to the right as shown below.

0 1 1 1 0 0 0 0

0 0 1 1 1 0 0 0

Write the denary number that is represented after this shift.

...............................................................................................................................................[1]

(c) State the effect the shift to the right had on the original denary number from part (a).

...............................................................................................................................................[1]

(d) The original number in part (a) is shifted one place to the right.

(i) Show the new binary number:

[1]

(ii) Write the equivalent denary number.

.......................................................................................................................................[1]
3

(e) Calculate the new denary number if the original binary number in part (a) is shifted
one place to the left.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[2]
3.Computers use a character set to convert text into binary. One-character set that can be used is
ASCII. Each letter in ASCII can also be represented as a denary value.

(a) The word BUS has the denary values:

B U S

66 85 83

Convert the denary values into 8-bit binary.

66

85

83
[3]

(b) Each letter in ASCII can also be represented as a hexadecimal value.

The word KEY has the 8-bit binary values:

K E Y

01001011 01000101 01011001

(i) Convert the three 8-bit binary values into hexadecimal.

01001011 ...............................................

01000101 ...............................................

01011001 ...............................................
[3]

Rivac 2019
2

4.A stopwatch uses six digits to display hours, minutes and seconds.

The stopwatch is stopped at:

0 2 3 1 5 8
Hours Minutes Seconds

An 8-bit register is used to store each pair of digits.

(a) Write the 8-bit binary numbers that are currently stored for the Hours, Minutes and Seconds.

Hours

Minutes

Seconds

[3]
(b) The stopwatch is started again and then stopped.

When the watch is stopped, the 8-bit binary registers show:

Hours 0 0 0 0 0 1 0 1

Minutes 0 0 0 1 1 0 1 0

Seconds 0 0 1 1 0 1 1 1

Write the denary values that will now be shown on the stopwatch.

Hours Minutes Seconds


[3]
5. Jafar is using the Internet when he gets the message:

“D03, page is not available”

Jafar remembers that hexadecimal is often used to represent binary values in error codes.

Convert the hexadecimal number in the error message into 12-bit binary.

[3]

6|Page
3

Rivac 2019

Вам также может понравиться