2022 Bluebook Computer Science
2022 Bluebook Computer Science
Additional materials:
Answcr papcr
I'IN'IE 3 hours
INSTRUCTTONS TO CANDIDATES
Write your name, centre number and candidate number in the spaces provided on the answer
paper/answer booklet.
If you use more than one sheet of paper, fasten the sheets together,
The number of marks is given in brackets [ ] at the end of each question or part question,
You are reminded of the ne ed for good English and clear presentation in your answers.
1 (a) (i) State any one difference and any one siinilarity bet,"veen ASCII
and Unicode. 121
01100100 x 00000011
(d) A digital system uses 16 bits for its Normalised floating point
representation.
rEantis$a exponent
{d} Describe the two components that make up the lP address. t4l
(c) State any two functions of the data link layer. t2l
6023/l N2022
3
4 (a) Explain any two types of intelrupts and give an example of how
each may be generated.
l6l
(b) Pt* a diagrarn representing a Von Neumann Architecture and explain
how it differs from the Harvard Architecture.
t6l
5 A power station has a safety system trased on 3 inputs to a logic network. A
warning signal (S = 1) is produced when cefiain conditions occur based
on these
3 inputs.
Repeat
If Narne > Node Then
take right pointer
Else
Take left poinrer
End If
Until empty Node
Tnsert Narne
6023/1N21r22
ITurn over
4
(a) Given that the root node is Dumisani, create a binary tree resulting from
inserting the following in the order given:
{b} Describe an algorithm tbr using the tree to read the names in alphabetic
order l2l
8 (a) write an algorithm, in pseudocode, of a program that accepts any 200
positive numbers and displays their sum.
lsl
(ti study the flor,vchart belor.v and ansrver the questions that follow.
Start
Read N
SetMto I
SetF to I
YES
Frint F
6023/1 N2t>22
5
N M F M: N? 0utput
t4l
(ii) outline the function or task that is performed by the tlow chart
above t1l
(b)
Attribute Relationship
Entity
Diagram'
The diagram above shows componerts of an Entrty Relationship
602311 N2022
6
BLA}IK PAGE
6023/1 N2022
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
Computer Science:N22
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
[email protected] [email protected]
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
o 01001001 =73
+00101111= 47
----- ------------------
01111000= 120
_______________
01101001=100
--------------- Use Normal Division method Aside
00000101=5
100/5=20
20=00010100
100*3=300
300= 100101100
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
Overflow of data due to the increased number of bits from the initial range
It ensures that data is transmitted to its correct address (IP address). Every
device on the internet has its IP address
The network ID (or network address) identifies the network on which a host
computer can be found.
The host ID (or host address) identifies a specific device on the network
indicated by the network ID
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
SMTP stands for “Simple Mail Transfer Protocol”. It is a technical standard for
transmitting electronic mail (email) over a network.
SMTP defines a process for exchanging data between an email client and a
mail server.
An email client is what a user interacts with: the computer or web
application where they access and send emails.
A mail server is a specialized computer for sending, receiving, and forwarding
emails; users do not interact directly with mail servers
Data Link Layer - provides error-checking and formats data for physical
transmission, type of network and packet sequencing is defined, used for
syncronisation
Input / output interrupt: they are generated by the I/O devices when transfer
is complete or when there is an error in transmission, e.g. disk full, printer
out of paper, etc.
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
The von Neumann architecture allows instructions and data to be mixed and
stored in the same memory module and the contents of this memory are
addressable by location only. The execution occurs in a sequential fashion.
Von Neumann architectures usually have a single unified cache
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
Truth table
6(a) E–waste is the discarded or unwanted electronic devices, such as computers and
mobile phones ,which are no longer required or useful to the owner and may pose
health risks to the environment is not disposed properly
(b)
The e-waste business can provide employment opportunities for
individuals within the community
It can serve as a source of income and contribute to the economy of
the immediate community
The e-waste business can promote environmental protection by
reducing the amount of electronic waste that ends up in landfills and
pollutes the environment
E-waste recycling can help safeguard public health by preventing the
release of toxic or harzadous substances into the environment
It can lead to technological advancements and contribute to the
development of the community by facilitating the acquisition of new
skills and knowledge
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
Dumisani
8(a)
Chelesani Ratidzai
Tendai
Amuleka Gamuchirai
(b)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Sum=0
Repeat 200 times:
Input positive number
If input is positive then
Add input to sum
End If
End Repeat
Display sum
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
N M F M=N? Output
5 1 1 No
2 2 No
3 6 No
4 24 No
5 120 Yes 120
9(a)
Efficiency: a well designed database can function at faster speeds
Data Integrity: A well designed database ensures that the database
stores correct, accurate data, consistent and reliable data
Security: A well designed database can protect sensitive data
from unauthorized access control mechanisms and security protocols
Scalability : The design should be able to scale up and down as the
design of the database shrinks or grows
Cost: A well designed database can reduce costs associated
with data management , such as storage and backup costs
(b)
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
(c)
Increased market reach: it allows small companies to reach beyond their
geographic location , which can help increase their customer base and
increase sales
Lower overhead costs:it reduces the need for physical storefronts and sales
personell , which can help reduce overhead costs associated with traditional
retail operations
Increased customer convenience:it provides access to valuable customer
data, including purchasing history and browsing behavior
Increases competition:allows small companies to compete with larger ones
(d)
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel free to contact if you have any objections with this documentation ---------
CYBRWAV3 GODS OWN PROVRBS 16:3 NOVMB3R 2022 SUGGESTED MS 0716057680
In summary, two global changes in the ICT industry include the growth of AI,
which is transforming the way we interact with technology, and the Internet
of Things, which is creating new opportunities for innovation and
transforming industries.
https://youtu.be/pxRClxgQ_3s
PROVRBS 16:3 Commit thy works unto the lord and thy thoughts shall be established
------------Feel
Feel free to contact if you have any obj
objections
ctions with this documentation ---------
ZIMBABWE SCHOOL EXAMINATIONS COUNCIL
General Certilicate of Education Advanced Level
COMPUTER SCIENCE
PAPER 2 Practical
Additioml materials:
CD foreach candidate
kintrng facility
Bond
TIME 3 hours
INSTRUCTIONS TO CAITDIDATES I
This is a purely practical examination. All answers should be priated. Handwritten atrswersi
will not be marked.
This paper consists of three sections.
Sectioa A 20 marks
Section B 50 marks
""
at,
Section C 30 marks
Answer one question from each section.
Each answer sheet should include the fdflowing information in &e header sectior:
. Candidate Name and CandidatelNumber
. Centre Name and Datei
. Subject Code
when answering prograaming questiops, indicate the ranguage used.
All work should be backed up by a sofl copy on a CD.
If you print on more t\an one sheeg fasten the sheets together.
All answers should be correctly and clearly numbered.
I
The number of marks is git'en in bracklts [ ] at the end of each question or part question.
tx (a) Three digital setrsors A, B and C are used to monitor a process. The outputs from
the sensors are used as the inputs to a logic circuit.
A
Logic Circuit OutputX
B
C
Time interval
State 1 2 J 4 5 6 7 I
Fetch instruction L
L
Execute instruction
6023i2N2022
3
2 (a) Consider the logic statemert below.
(ii) Construct a truth table to explain how the logic expression works
t5l
(b) Illustrate with an aid of a diagram the steps of the fetch-execute cycle.
t8l
6023i2N2022
[Turn over
4
J (a) Produce a program code that rolls a dice 20 times and counts the number
oftimes that 4 appears- The code should then print the number of times
that4 appears. t8l
(b) Produce a program that contains a calling statement to call a function
that calculates the sum of 2 numbers and store the answer in the
variable sum. Also defiae the function. tsl
(c) Bandile is working on developing an algorithm using a high level
language to implemeat a substitution cipher. His plan is to:
(d) A school has a program for managing its prefect body. The program has
beea written in an object-oriented programming language.
6023t2N2O22
Prefect
Prefect Name
Male
Date Appointed
' ( Constructor
' Set Prefect Name
'. Set Male
Set DateAppointed
. Get Expiry Date
6023/2N2A2Z
[Turn over
&
Student csv
Student table
Name, surname, D" O.B, Reg number, male
0t/08/2004 01 No
A 70 to 100
B 60 to 69
C 50 to 59
D 44l'o49
E 30 t0 39
TT
A to29
(d) [11]
x". n I 1
I L J 4
y:0 0 * * 0 0
I C 0 0 0 0
'I
2 G 0 L 0 0
I I
CI t 1
I 0
4 1 I I 1 I
6423/2N2022
7
---->
6023/2N2022
8
Study the Lupane University Athletics table below and auswer the questions that follow
(a) Produce the SQL code that defines a primary key of this table. L21
(b) Produce the SQL code that can be used to produce the Athletics table
above. t8l
(c) Produce the SQL command w'hich can be used to add the record below.
(d) The sports director for Lupane State University wants to see thb Reg.
Number and the sport fields only for the students.
Produce the SQL code to display Reg. Number and sport- L2l
(e) Athlete MC 0708 has moved to another university. Her details need to
be removed &om the table.
Using a drawing tool of your choice, draw and clearly label the ERD for
&e standard notation given above. teI
6823i?N2022
9
{ A hospital is divided into two areas, Area A and Area B. Each area has
several wards. All the ward aames are different. A number of nurses
are
based in Area A. These nurses always work io the same ward. Each
nurse has a
unique Nurse ID of STRING data type.
A-NURSE A-VTARD
B-NURSE B-$/ARD
6A?3/2N2022
F6
-
B-Ward-Nurse(........... .)
(iii) Draw tle relationships of the three tables above usiag an ERD. t3l
(ii) Tendero, who is an Area B nurse with the nurselD 076 has recently
manied andher new family trame is Makwanzini. Produce an SQL
command to update her record. t5]
(e) A student intends to create a database with tables whose records can be
accessed using a form based iaterface created using a high level
programming language. The standard normal form of the member table in
the database is as follows:
(i) design a data structure (file design) of the member file in tabular
form (using aword processor) with the following column headings
4023/2N2022
1/1/2022
…………………………………………Proverbs 16:3
SECTION A
State 1 2 3 4 5 6 7 8
Fetch Instruction D E
Read registers and decode D E
instruction
Execute instruction D E
Access operating memory D E
Write result to register D E
B X
Use MS Excell
D E F G X
(b)
Start
No
Any
instructions to
execute
Yes
Fetch next
instructions
Execute
Instruction
No Any Yes
interrupts to
be processed
SECTION B
Module Module1
Sub Main()
Dim rand As New Random
Dim face As Integer
Dim count As Integer
For i = 1 To 20
face = rand.Next(1, 7)
If face = 4 Then
count += 1
End If
Next
Console.WriteLine("4 appeared {0} times", count)
Console.ReadLine()
End Sub
End Module
Module Module1
Private Function add(ByVal num1 As Integer, num2 As Integer) As Integer
Dim sum As Integer
sum = num1 + num2
Return sum
End Function
Sub Main()
Dim num1, num2 As Integer
End Module
C(i)
Module Module1
Public cyberwave() As Char = {"J"c, "K"c, "M"c, "Z"c, "N"c, "L"c, "Q"c, "R"c, "Y"c,
"V"c, "T"c, "T"c, "G"c, "W"c, "U"c, "D"c, "E"c, "C"c, "F"c, "B"c, "O"c, "A"c, "X"c, "S"c,
"I"c, "H"c, "P"c}
End Module
(a)
(b)
Module Module1
Sub Main()
While True
Console.WriteLine("Enter your mark")
Dim mark As Integer = Console.ReadLine()
If mark >= 70 And mark <= 100 Then
Console.WriteLine("A")
ElseIf mark >= 60 And mark <= 69 Then
Console.WriteLine("B")
ElseIf mark >= 50 And mark <= 59 Then
Console.WriteLine("C")
ElseIf mark >= 40 And mark <= 49 Then
Console.WriteLine("D")
ElseIf mark >= 30 And mark <= 39 Then
Console.WriteLine("E")
ElseIf mark >= 0 And mark <= 29 Then
Console.WriteLine("U")
Else
Console.WriteLine("Invalid results")
End If
End While
End Sub
End Module
Case2-GUI
End Sub
End Class
Module Module1
Sub Main()
{0, 0, 0, 0, 0},
{0, 0, 1, 0, 0},
{0, 1, 1, 1, 0},
{1, 1, 1, 1, 1}
End Sub
End Module
Module Module1
Sub main()
hanoi(1, 3, 2, 3)
End Sub
Sub hanoi(ByVal source As Integer, dest As Integer, temptower As Integer, ndisks As
Integer)
If ndisks > 1 Then
hanoi(source, temptower, dest, ndisks - 1)
End If
Console.WriteLine("Move Disk{0} from tower {1} to tower {2}", ndisks, source,
dest)
If ndisks > 1 Then
hanoi(temptower, dest, source, ndisks - 1)
End If
Console.ReadKey()
End Sub
End Module
(f)
Sub CountLines()
lineCount = 0
lineCount += 1
End For
End Sub
SECTION-C
(b)
);
VALUES
FROM LupaneUniversityAthletics;
below
entity Borrower {
BorrowerID PK
Name
BorrowerID
Address Address Name
Accession Number PK
Title
Author
Accession Title
Number
DatePublished
Book
}
Date
entity Loan { Author
Published
Accession Number PK
Accession
BorrowerID FK BorrowerID
Number Loan
DateDue
Date Due
}
6(a) Many-to-one
(b i)A-Nurse(Surname,Firstnmae,Ward_Number,NurseID)
C(i) Many-To-Many
2. WardID (foreign key): The WardID of the ward that the nurse is
assigned to.
(i)
FROM B-Nurse
(ii)
UPDATE B-Nurse
Data
FieldName Size Format/Validation type
Remember the question stated that command buttons are not necessary
Cyberwave Solutions
Philippians 4:13
Proverbs 16:3
Chatbot services
Youtube Tutorials
Project Assistance