You are on page 1of 2

OAK INTERNATIONAL SCHOOL, BENIN

Second Marking Period Examination 2022/2023


Subject: COMPUTER STUDIES

Name:….…………………… Grade: 10 Date:.….…… Duration: 1¼ HR

PART A
MULTIPLE CHOICE QUESTIONS
INSTRUCTION: For each of the questions 1 to 8 in this part, ENCIRCLE the option which
corresponds to the correct answer in your answer booklet. SUBMIT YOUR QUESTION PAPER.

1. A datatype which stores a set of characters is In a computer program the following variable
called ……………………. were declared: a = 8, b = 12, c = 9 and d = b *
A. integer c. Use this information to answer questions 4
B. string and 5.
C. Boolean 4. Which of the following will evaluate to a
D. Number Boolean True?
A. (d mod 8) = 4
2. Which of the following is not a logical B. a * b = d
operator? C. (b + c) > (a + d)
A. AND D. All of the above
B. OR
C. NOT 5. Which of the following will evaluate to a
D. FOR Boolean False?
A. (b mod 7) = 0
3. What will be the result of the arithmetic B. (b mod 3) = 0
operation 15 mod 3? C. (c mod 2) = 1
A. 5 D. (d mod 9) = 0
B. 1
C. 0
D. 18
7. What value will be stored in variable Y in the
script in Fig. A above?
A. 3
B. 4
C. 5
D. 7

Fig. A
8. The statement P and the statement Q are
6. What will be the output of the script in Fig. combined using the logical operator AND. If
A above? the statement P is True and P is False, what
A. 24 will be the output of the logical operator?
B. 30 A. True
C. 70 B. False
D. 3 C. Both A and B
D. None of the above

LAB SESSION
1. Using Scratch version 3, write a program (Drawing.sb3) that draws the shape below using repeat
loop

2. Write a scratch program (Even_Odd_Sum.sb3) that asks the user to enter two values X and Y. The
program will then compute their sum and save it in a variable SUM. The program should then
display the value of the sum and say whether it is an even number sum or an odd number sum. An
example of the final output of the program is given below:
THE SUM OF X AND Y IS 30 AND 30 IS AN EVEN NUMBER

Good luck!

You might also like