Comp 02

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

Joan McDonald School Islamabad

Mid-Year Examination 2023


SUBJECT: Computer Science

Name: _____________________ Class: O Level-2


Date: ______________________ Time Allowed: 2hrs 30mins
Total Marks: 100 Marks Obtained: ____________
Teacher’s Name: Ms. Musheeza Teacher’s Sign:____________
Principal’s Stamp: ___________
Paper 1
Objective (30 marks)
1. What is the denary (base 10) equivalent to the hexadecimal
digit E?
a. 15 b. 14
c. 13 d. 12
2. ............................... translates source code into object code.
a. Compiler b. Interpreter
c. Assembler d. None
3. ............................... translates low-level language into
machine code.
a. Compiler b. Interpreter
c. Assembler d. None

Page 1 of 9
4. ............................... stops the execution of a program as
soon as it encounters an error.
a. Compiler b. Interpreter
c. Assembler d. None
5. The basic building block of the computer systems is ...........
a. Binary b. Hexadecimal
c. Denary d. None
6. 1 + 1, the carry will be .....................
a. 1 b. 0
c. 2 d. -1
7. The denary number 200 in binary is .....................
a. 11001000 b. 11001001
c. 11001111 d. 11011111
8. Which of these is the correct name for the operating system
function that allows many programs to run simultaneously?

a. utility program b. application package

c. embedded system d. multitasking

9. State whether the following about the translator are True or


False.
a. An assembler translates a high-level language program.

Page 2 of 9
b. It is more difficult to write a program in a low-level
language.
c. Java is an assembly language.
d. It is quicker to develop a program using a high-level
language.
e. You always need a compiler to run a compiled program.
f. A program that is interpreted takes a longer time to run
than a compiled program.

10. Five storage devices or media are listed in the table.


Tick to show whether each storage device or media is an
example of primary, secondary or off-line storage.

11. Four descriptions about compilers and interpreters are


shown below. Draw lines to indicate which descriptions refer
to a compiler and which descriptions refer to an interpreter.

Page 3 of 9
Page 4 of 9
Paper 2
Subjective (70 marks)

Attempt all questions. (14 x 5 = 70)

1. An electronic guessing game compares denary integer


values input by a user with pre-stored values. The pre-stored
values are held in 10-bit binary format.

a. Convert the binary values in the table to denary.

Binary Denary
0001001110

b. When planning the game, the designer decided to use


hexadecimal notation to represent the binary values.

Explain why the designer used hexadecimal notation.

c. State the hexadecimal equivalent of the binary value

1010110101.

2. Sonia shares files with her friends. The method of data


transmission she uses is half-duplex serial transmission.

Page 5 of 9
a. Describe how data is transmitted using half-duplex
serial data transmission.

3. An 8-bit binary register contains the value:


00110100
a. The contents of the register shown at the start of question
are shifted two places to the left.
Show the contents of the register after this shift has taken
place.
b. State the effect this shift has on the denary value in part
(a)
4. The system uses parity bits to check for errors during data
transmission.

The outcome of four bytes after transmission is:

Byte 1 Byte 2 Byte 3 Byte 4


00110011 01010100 10110100 01110111

One of the bytes has been transmitted incorrectly.

a. Identify the byte that was transmitted incorrectly.

b. Explain how you identified the byte that was transmitted


incorrectly.

Page 6 of 9
5 Using a single loop, write an algorithm in pseudocode to
output 50 names that have been stored in the array, Name[].
6. Audrey wants to send a sound file to Nico using email.
The file is too large to attach to an email so Audrey decides to
compress the file. She uses lossy compression to reduce the
size of the sound file.

a. Describe how lossy compression reduces the size of


the sound file.
b. Nico asks Audrey why she used lossy compression
rather than lossless.

i. State one advantage Audrey could give of using lossy


rather than lossless to compress the sound file.

ii. State one disadvantage Nico could give of using lossy


rather than lossless to compress the sound file.

7. Explain two advantages of using serial transmission rather


than parallel transmission.
8 a. Explain the differences between a Graphical User
Interface (GUI) and a Command Line Interface (CLI).

b. Give one advantage and one disadvantage of using a GUI


interface.

Page 7 of 9
9. Another method of error detection is Automatic Repeat
request (ARQ). Explain how ARQ is used in error detection.
10. An algorithm has been written in pseudocode to input
some numbers. It only outputs any numbers that are greater
than or equal to 100. The number 999 is not output and stops
the algorithm.

(a) Identify the four errors in the pseudocode and suggest


corrections.
11. Describe what is meant by asymmetric encryption.
12. Jamelia wants to store an image file. The image has an 8-
bit resolution and is 150 pixels by 100 pixels in size.
Calculate the file size of the image. Give your answer in
kilobytes (kB). Show all of your working.
13. A satellite navigation system is an example of a computer
system that is made up of sub-systems.
Part of a satellite navigation system:
 allows the user to enter details for a new destination or
select a previously saved destination
 displays directions in the form of a visual map or as a
list.

Page 8 of 9
Draw a structure diagram for this part of the satellite
navigation system.
14 a. Describe the purpose of validation and verification
checks during data entry. Include an example for each.
b. Identify two different selection statements that you can use
when writing pseudocode.

Page 9 of 9

You might also like