0% found this document useful (0 votes)
212 views9 pages

Computer Science (2210) Sample Paper For O Level 1

This document contains a series of questions about binary, hexadecimal, data transmission, and fault detection. It asks the reader to perform conversions between number bases, identify fault conditions in registers, and describe data transmission methods and their uses. Parity checking is discussed as a way to detect errors in transmitted data.

Uploaded by

Mehwish Tahir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views9 pages

Computer Science (2210) Sample Paper For O Level 1

This document contains a series of questions about binary, hexadecimal, data transmission, and fault detection. It asks the reader to perform conversions between number bases, identify fault conditions in registers, and describe data transmission methods and their uses. Parity checking is discussed as a way to detect errors in transmitted data.

Uploaded by

Mehwish Tahir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

1

Section A

1 (a) Convert the following hexadecimal number into 12-bit binary:

4AF

[3]

(b) The 2016 Olympic Games will be held in Rio de Janeiro. A timer that counts down to the
opening of the Games is shown on a microprocessor-controlled display.

The number of hours, minutes and seconds until the Games open are held in three 8-bit
registers.

The present register values are:

0 1 1 0 1 0 0 1 105 hours

0 0 1 0 0 0 0 0 32 minutes

0 0 0 1 0 1 0 0 20 seconds

The timer will count down in seconds.

(i) Show the values in each 8-bit register 30 seconds after the time shown above:

hours

minutes

seconds
[3]
(ii) Write the hexadecimal value of the minutes register from part (b)(i).

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

. of bytes.
(iii) Computer memories are measured in terms of the number

What is meant by the term byte?

[1]
2

2 In the following barcode, each binary number is made up of seven bars.

Each bar is black or grey.

A black bar is interpreted as a “1” and a grey bar is interpreted as a “0”.

(a) Write the binary numbers that would be produced from this barcode:

%LQDU\QXPEHU$ %LQDU\QXPEHU%

Binary number A:

Binary number B:
[2]

(b) This barcode system uses odd parity.

Write the parity bit for each of the binary numbers in part (a):

Parity bit

Binary number A:

Binary number B:
[2]

3 (a) A microprocessor regularly samples the output, X. Each sample value is stored in an 8-bit
register as shown below. One bit of this register is reserved as a parity bit.

Five consecutive output values of 1 indicate a fault condition.

Identify which of the following registers shows a fault condition.


Parity bit

1 1 1 1 1 0 0 1 Register Y

0 1 0 1 1 1 1 1 Register Z

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

© UCLES 2016 2210/13/O/N/16 [Turn over


3

(b) When eight bytes of data have been collected, they are transmitted to a computer 100 km
away. Parity checks are carried out to identify if the data has been transmitted correctly. The
system uses even parity and column 1 is the parity bit.

The eight bytes of data are sent together with a ninth parity byte:

parity column column column column column column column


bit 2 3 4 5 6 7 8
byte 1 1 0 0 0 0 1 0 0
byte 2 1 1 1 1 0 0 1 1
byte 3 0 1 0 0 1 0 0 0
byte 4 0 1 1 1 0 0 0 1
byte 5 1 0 0 0 1 1 1 1
byte 6 0 0 0 0 0 0 0 0
byte 7 1 1 1 0 1 0 0 0
byte 8 1 0 0 0 1 1 1 0
parity
1 0 1 1 0 1 1 1
byte

(i) Identify which of the eight bytes contains an error.

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

(ii) Identify which column contains an error.

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

(iii) The incorrect bit is indicated where the byte number and column cross.

Give the corrected byte.

[1]

(iv) Calculate the denary value of the corrected byte.

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

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

(v) Considering the fault condition given in part (c), explain why it is very important that the
incorrect bit is located and corrected.

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

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

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

.......................................................................................................................................[2]
© UCLES 2016 2210/13/O/N/16
4

4 Computer A is communicating with computer B.

(a)
Draw an arrow or arrows to show simplex, duplex and half-duplex data transmission. The
direction of the data transmission must be fully labelled.

Simplex data transmission

Computer A Computer B
             

Duplex data transmission

Computer A Computer B
             

Half-duplex data transmission

Computer A Computer B
             

[6]

(b)
State a use for the following data transmission methods. The use must be different for each
data transmission method.

Simplex �������������������������������������������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������������������������������������������

Duplex ��������������������������������������������������������������������������������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������������������������������������������
[2]

© UCLES 2017 2210/12/M/J/17 [Turn over


5

5 Ahmed uses the Internet for some time and is puzzled by the terminology.

Draw a line to match each description to the appropriate technical term.

authoring language used to


create documents to be viewed Browser
on the World Wide Web

computer that responds to


requests to provide information HTML
and services over the Internet

defines how messages are


transmitted and formatted MAC address
over the Internet

numerical ID for each device


Internet Server
on the Internet

software that enables users


to access/view documents and IP address
other resources on the Internet

unique ID for a network


http
interface card

[5]
6

6. Draw the Symbolic representation and fill the Truth Table for each given Logic Gate.

Symbolic
Name Truth Table
Representation
INPUTS OUTPUT
A B X
AND

INPUTS OUTPUT
A B X
OR

INPUTS OUTPUTS
NOT

INPUTS OUTPUT
A B X
NAND

INPUTS OUTPUT
A B X
NOR

INPUTS OUTPUT
A B X
XOR (Exclusive
OR)

[18]
7

Section B

1. Write Program code for following problems in VB 2010:

a. Input two numbers and display their sum.


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

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

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

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

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

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

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

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

.......................................................................................................................................[5]

b. Input one number and display its cube.

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

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

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

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

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

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

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

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

.......................................................................................................................................[5]
8

c. Input Temperature in Fahrenheit and convert it into Celsius. (Hint: C = 5/9* (F-32 ))
...........................................................................................................................................

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

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

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

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

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

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

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

.......................................................................................................................................[5]

d. Input Population & land area and display Population Density.


(Hint: PopulationDensity = Population / LandArea

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

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

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

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

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

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

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

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

.......................................................................................................................................[5]
9

e. Input the name of your school and display it.


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

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

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

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

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

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

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

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

.......................................................................................................................................[5]

You might also like