0% found this document useful (0 votes)
15 views4 pages

Computer Science 1

Ykbd

Uploaded by

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

Computer Science 1

Ykbd

Uploaded by

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

LOYOLA HIGH SCHOOL

FORM FIVE WEEKLY TEST

COMPUTER SCIENCE

TIME: 1 HOURS 22/07/2024

Instructions

1. Answer all
1. (a) The computers that we use are digital whereas we live in an analog world
which means that we have to translate analog data into digital data. What
is
the name of the circuit which helps us in this conversion?
(b) Power supply fan is not working and it emits a lot of sound. What will be
the problem?
(c) What is the computer ? Mention two main components of a computer
system?
(d) Different components on the motherboard of a PC processor unit are
linked
together by sets of parallel electrical conducting lines. What are these
lines
called?
(e) A system program that combines the separately compiled modules of a
program into a form suitable for execution is called?
2. Figure below shows part of an excel sheet which shows Juice sales of AZAM
company. Study the table carefully and answer questions that follow. Note

A B C D E F G H

1 SODA S A L E S

3 Unit Total
Total
Juice Mon Tues Wed Price Amou
Sold
Shs. nt

5 Lemon 1000 200 500 500

6 Orange 500 1500 200 600

7 Pineappl
100 300 500 700
e

8 Mango 200 200 800 600


9 Strawber
100 100 600 800
ry

1
0

1
1

(a) Write steps to find total drinks sold by the company


(b)Identify a cell in which a formula/function would be written; hence write
the formula/function that determines the most popular drink.
(c) Which user defined formula would be typed in cell H10 to determine the
amount of money earned by the company for selling a coke drink?
3. (a) Use Boolean laws of algebra to simplify the following Boolean expression:
Z=( A+ B+ C)( A+ B C)
(b)Draw a logic gate circuit from the Boolean expression function given
below:
A B+C ( A + B)
4. (a) Describe three methods that a programmer can use to make C++ code
understandable to allow the computer engineer to maintain it.
(b)Why header files(s) are very important in every C++ program?
(c) Explain the importance of break at the end of each switch case
statement.
5. (a) Write down circumstances to use class selector and id selector in
Cascading Style Sheet (CSS).
(b) Explain the importance of < div > tag in HTML.
(c) Write down codes for Html form with two elements username and
password. Using onclick event, use JavaScript codes to validate
username to only accept 10 characters and password to accept
characters not less than eight.
Note: A program should display an appropriate message in case
validation is violated when send Button is clicked

You might also like