Grade 10 Computer Question Bank
Teacher: Mr. Ricardo Date: 10 December 2024
Total No. of Questions: Total Marks: 60
The test will have the same layout (question types) and mark distribution.
Multiple choice: (Mark 1 Total: 20 Marks)
1. What is a computer or software program?
o a) location in the computer memory to store data
o b) is the blinking cursor next to a right-angle (>) called
o c) variables used for in computer memory
o d) is a series of instructions that can be understood and followed by a computer
2. What programming language is used to write programs that run on web pages?
o a) WhatsApp
o b) JavaScript
o c) Messenger
o d) Snapchat
3. What can JavaScript control or do on a web page?
o a) The Wi-Fi password
o b) how a web page looks
o c) Make the page respond when a viewer clicks a button or moves the mouse.
o d) choices B and C
4. What will be displayed in your browser when you type "about: blank"?
o a) video
o b) spreadsheet
o c) blank page
o d) editor
5. How do you open the JavaScript console?
o a) ctrl + shift + h
o b) ctrl + shift + i
o c) ctrl + shift + j
o d) ctrl + shift + k
1
6. What is the JavaScript console useful for?
o a) to edit your videos to upload in YouTube
o b) to edit pictures to upload in social media
o c) excellent for testing all the short programs that you will be writing
o d) excellent for drawing all the short programs
7. What is the blinking cursor next to a right-angle (>) called?
o a) prompt
o b) operator
o c) gateway
o d) none of the above
8. What is the + operator used for in programming?
o a) subtraction
o b) multiplication
o c) addition
o d) division
9. What is the - operator used for in programming?
o a) subtraction
o b) multiplication
o c) addition
o d) division
10. What is the / operator used for in programming?
o a) subtraction
o b) multiplication
o c) addition
o d) division
11. What is the * operator used for in programming?
o a) subtraction
o b) Modulus (division remainder)
o c) Exponentiation
o d) multiplication
12. What is the % operator used for in programming?
o a) subtraction
o b) Modulus (division remainder)
o c) Exponentiation
o d) multiplication
13. What is the ** operator used for in programming?
o a) subtraction
o b) Modulus (division remainder)
o c) Exponentiation
2
o d) Multiplication
14. What are variables used for in computer memory?
o a) location in the computer memory to store data
o b) is the blinking cursor next to a right-angle (>) called
o c) variables used for in computer memory
o d) is a series of instructions that can be understood and followed by a computer
15. How do you create a new variable in JavaScript?
o a) use the keyword let
o b) use the keyword var
o c) use the keyword html
o d) use the keyword body
16. What does assignment mean in programming?
o a) location in the computer memory to store data
o b) is the blinking cursor next to a right-angle (>) called
o c) variables used for in computer memory
o d) assigning the value to the variable
17. How do you update the value of a variable in JavaScript?
o a) we use the equal (=) sign without the var keyword:
o b) we use the equal (*) sign without the var keyword:
o c) we use the equal (+) sign without the var keyword:
o d) we use the equal ($) sign without the var keyword:
18. Are variable names case-sensitive?
o a) yes
o b) No
o c) Maybe
o d) None of the above
19. Can you use spaces in a variable name?
o a) yes
o b) No
o c) Maybe
o d) None of the above
20. What must a variable name begin with?
o a) With a symbol, a space or a & sign.
o b) With a letter, an underscore (_) or a dollar sign ($).
o c) With a %, a number sign or @ sign
o d) none of the above
21. What can a variable name contain?
o a) symbol, space and # sign
3
o b) percent, @ sign
o c) Letters, numbers, underscores, or dollar signs.
o d) none of the above
22. What does HTML stand for? Mark= (1x1=1)
o a) Hyperlinks and Text Markup Languag
o b) Hyper Text Markup Language
o c) Home Tool Markup Language
o d) Hyperlinking Text Mark Language
23. Which is the correct Tag for specifying the Variables? Mark= (1x1=1)
o a) Variable=
o b) name=
o c) varName
o d) var
o
24. Which of the following is the correct way to start an HTML document? Mark= (1x1=1)
o a) <html-start>
o b) <!DOCTYPE html>
o c) <html>
o d) <html header>
25. Use the following example and state the description usage of the symbol in the set of
code.
Example:
o a) Multiplication
o b) Addition
o c) Subtraction
o d) Division
26. Use the following example and state the description usage of the symbol in the set of
code.
Example:
o a) Multiplication
o b) Modulus
o c) Subtraction
o d) Division
27. Use the following example and state the description usage of the symbol in the set of
code.
Example:
o a) Addition
o b) Modulus
o c) Subtraction
o d) Division
4
REFERENCE IMAGE:
28. In a Python "for" loop, what does the i represent in for i in range(3):?
o a) The total number of repetitions.
o b) The value of the range function.
o c) A variable to keep track of the current iteration.
o d) The length of the loop.
29. What will be the result of the loop for i in range(3): in terms of repetition?
o a) It will repeat 2 times.
o b) It will repeat 3 times.
o c) It will repeat indefinitely.
o d) It will repeat 4 times.
30. Which part of the loop in for i in range(3): specifies the number of iterations?
o a) i
o b) range
o c) 3
o d) import
31. What would happen if the indentation is missing in the loop body after for i in range(3): ?
o a) The loop would still run without errors.
o b) The loop would only run once.
o c) Python would throw a syntax error.
o d) The loop would be ignored by Python.
32. In the example for i in range(3): forward(80) left(360/3), what is the purpose of the
forward(80) and left(360/3) commands?
o a) To set the initial position of the loop.
o b) To repeat the movement instructions three times.
o c) To import the Turtle module.
o d) To define the variable i.
5
Fill in the blanks: (Mark 1 Total: 15 Marks)
1. ______________________________________ is a series of instructions that can be
understood and followed by a computer.
2. The ______________________ programming language is used to write programs that
run on web pages.
3. The _______________________ can control how a web page looks or make the page
respond when a viewer clicks a button or moves the mouse.
4. A _________________________ will be displayed in your browser once you type about:
blank.
5. You will see the JavaScript console by pressing ___________________________.
6. The _____________________________ is excellent for testing all the short programs
that you will be writing.
7. The blinking cursor (I) next to a right-angle (>), is called ________________________.
8. The + operator is ___________________________________.
9. The – operator is ___________________________________.
10. The / operator is ___________________________________.
11. The * operator is ___________________________________.
12. The % operator is ___________________________________.
13. The ** operator is ___________________________________.
14. ____________________________ are location in the computer memory to store data.
15. To create a new variable, you must use the keyword ____________________________
______________________________.
16. The ___________________________ is we are assigning the value to the variable.
17. If we need to update a variable value, we use the _______________________________
__________________________________________________.
18. The variable names are __________________________________.
19. You cannot use _________________________________in variable name.
6
20. A variable menu must begin with a __________________________________________
__________________________________.
21. A variable name can contain_______________________________________________
____________________________________________________.
22. To make the turtle visible again after it has been hidden, use the ____________ method.
23. When the reset() method is used, it moves the turtle to (0, 0) and ________________the
screen.
24. To set the turtle’s direction to 90 degrees, use the method ____________________.
25. If you want the canvas size to be 75% of the screen’s height, use the _______________
method.
26. The hideturtle() method is used to ___________________ the turtle from the screen.
True or false: (Mark 1 Total: 15 Marks)
1. Can you use spaces when naming variables?
a) True
b) False
2. Are variables case sensitive?
a) True
b) False
3. State that the Operator for the multiplication for JavaScript sign is (*) symbol?
a) True
b) False
4. State that the Operator for the exponentiation for JavaScript sign is (+) symbol?
a) True
b) False
5. The screensize(w, h, [bgcolor]) method allows you to adjust the size of the canvas without
altering the main drawing window.
a) True
b) False
6. The home( ) method in Turtle graphics moves the turtle to the home position (0, 0) facing
right.
a) True
b) False
7
33. Using goto(x, y) or setpos(x, y) will change the turtle’s heading to a specified angle.
a) True
b) False
34. The clear() method resets the turtle to the origin (0, 0) and clears the screen.
a) True
b) False
35. Setting speed (0) makes the turtle move at its fastest speed.
a) True
b) False
36. RGB stands for Red Green Blue.
a) True
b) False
37. To use the Yellow System in RGB it should be displayed (1.1.0)
a) True
b) False
38. To use set fill color methods in Python turtle graphics is the syntax “fillcolor(color):”
a) True
b) False
39. The fill color method should have a beginning and an end function in order to tell Python
turtle in syntax what needs to be coloured?
a) True
b) False
40. The && signs in Java is to decide the choice between two variables?
a) True
b) False
41. The def keyword is used to define a function in Python.
a) True
b) False
42. The from turtle import * statement imports all methods and functionalities from the turtle
module.
8
a) True
b) False
43. A function name must be unique in Python.
a) True
b) False
44. Once a function is defined, it can only be used once in a program.
a) True
b) False
Match the following: (Mark 1 Total: 10 Marks)
Column A Column B
A
Equal
B
Modulus (division remainder)
C
Greater than
D
Addition
E
And
F
Greater than or Equal to
G
Less than
H
Subtraction
I
Not
J
Division
K
Not Equal (different)
L
Less than or Equal to
M
Or
N
Multiplication
O
Exponentiation
P
Comment (marker)