Computer Science Ordinary Level - Mock Examination Notes
General Certificate of Education and Intermediate Technical and Vocational Education Regional Mock Examination
Examination Details
- Subject: Computer Science
- Level: Ordinary Level
- Time Allowed: Two and a half hours
Instructions to Candidates
- Mobile phones are NOT ALLOWED.
- Carry out ALL tasks.
- Importance is given to accuracy, layout, and labeling of drawings and computer-generated outputs.
- Good English and orderly presentation are necessary.
- Write algorithms in the answer booklet.
- Record any information that would make it easier to understand how you carried out tasks or answered questions in your answer booklet.
- Print out a single copy of relevant program fragments at different times and notify the instructor if a printout was not done.
- Either Standard [ISO] Pascal or the [ANSI] C or C++ programming language standards may be used when an imperative programming language (PL) is required.
- Supervisors will assist in recording details of intermediate work on the computer if needed.
- Do not write on the first page of your answer booklet.
- Notify the instructor if soft copy information is not available.
Task 1: Word Processing (20 Marks)
Title: The Evolution of Computing Technology: Shaping the Future
Computing technology has become integral to daily lives, revolutionizing communication, work, and access to information. From room-sized mainframe computers to compact devices, the evolution has been remarkable.
The Birth of Computing Technology
- Traced back to the mid-20th century.
- First electronic computers were developed, powered by vacuum tubes.
- These machines were slow and had limited processing power but laid the foundation.
Mobile Computing and Smart Devices
- The 21st century witnessed the rise of mobile computing.
- Characterized by smartphones and tablets.
- Portable devices equipped with powerful processors and internet connectivity provide instant access to applications, services, and information.
Artificial Intelligence and Machine Learning
- Witnessing rapid advancements in AI and ML.
- AI technologies like virtual assistants and autonomous vehicles are increasingly integrated.
- ML algorithms are transforming industries, making predictions and recommendations based on vast data amounts.
- Potential to revolutionize sectors from healthcare to transportation.
Task Instructions:
- Give the name and version of the word processor installed (1 mark).
- Open a new word processor document: * Set the page orientation to landscape. * Set the left, right, top, and bottom margins to (2 marks).
- Type the entire passage above (5 marks).
- Format the passage: * Title: Arial Bold, 20 points font size, blue color, centered, and underlined (2 marks). * Rest of the paragraph: Times New Roman, 12 Points font size, and aligned Justified (2 marks). * Set Line spacing to 1.5 (1 mark).
- Format the first and second paragraphs to have 3 columns, and the rest to have two columns each (2 marks).
- Insert: * A Drop cap on the beginning letters of each paragraph (1 mark). * Any ICT device (computer, phone, printer etc.) in the middle of paragraphs 3 and 4 and bottom right of the last paragraph (2 marks). * A header that reads “The evolution of computing technology: shaping the future” with font type Times New Roman, italic, and font size 10 (1 marks).
- Insert a page border (not a Line) of your choice (1 mark).
- Save your work as task1 (0 marks).
- Make sure your work is on a single page and Print it (0 marks).
Task 2: Spreadsheet (20 Marks)
Instructions
- Reproduce the figure provided using appropriate spreadsheet software. * Insert an appropriate formula to compute the number of subjects sat in for by Dorinda in cell F4 (2 marks). * Copy the formula to calculate the number of subjects for the other students (1 mark).
- Calculate the total marks for DORINDA in cell I4 and copy through for the others (2 marks).
- * In cell M4, compute the average of DORINDA using an appropriate spreadsheet formula (2 marks). * Extend the formula to the other cells to obtain the averages of the other students (1 mark).
- * In cell N4, insert a formula that will determine the position (rank) of DORINDA in that exam (2 marks). * Copy the formula to the other cells to obtain the rank of the other students (1 mark).
- * In cell O4 insert a remark of "Fail" for average less than 10, "Pass" for average greater than 10, "Excellent" for average above 15 (2 marks). * Extend the averages to the other cells to obtain the remark of the other students (1 mark).
- Represent the results on a bar chart with students' names on the horizontal axis and their corresponding averages on the vertical axis (1 mark).
Task 3: HTML and Programming (20 Marks)
Part a: HTML
- Type the following HTML code in an appropriate environment and print the output of your code.
<html>
<head>
<title>Identify the body of the CPU (Microprocessor)</title>
</head>
<body>
<h1>The CPU (Microprocessor)</h1>
<p>The CPU (microprocessor) is divided into three sub-components:</p>
<ul>
<li>The Control Unit (CU)</li>
<li>The Arithmetic Logic Unit (ALU)</li>
<li>The Registers</li>
</ul>
<h2>Main Functions of these Components</h2>
<b>The Control Unit (CU)</b>
<ul>
<li>Function: To fetch and decode instructions/data</li>
</ul>
<b>The ALU</b>
<ul>
<li>Function: To execute instructions and data</li>
<li>It performs all the Arithmetic and Logical operations inside the CPU</li>
</ul>
<b>The Registers</b>
<ul>
<li>Function: Store instructions temporarily used by the processor during processing</li>
</ul>
</body>
</html>
Part b: Programming (C or Pascal)
The code below can be executed with either a C or Pascal program. Choose an appropriate environment and answer the questions that follow:
C Program
#include <stdio.h>
int main(void) {
int i;
for (i = 1; i <= 10; i++) {
if (i < 5) {
printf("%d * %d = %d\n", i, i, i * i);
} else {
printf("%d / %d = %d\n", i, i, i / i);
}
}
return 0;
}
Pascal Program
PROGRAM Numbers;
VAR
i: integer;
BEGIN
for i := 1 to 10 do
begin
if i < 5 then
writeln(i, ' * ', i, ' = ', i * i)
else
writeln(i, ' / ', i, ' = ', i div i);
end;
readln;
END.
Task Instructions
- Choose either a C or Pascal program development environment (IDE) and key in the program.
- Compile the program and correct all errors.
- Save as Task3b.
- Run the program and write the output you observe.
- Name any programming construct that is used in the program (loop).