WorksheetsCP Final Exam Review 1
Total questions: 35
Worksheet time: 12mins
Name
Class
Date
1.
What is a sprite in computer programming?
a)
A type of loop
b)
An animated object or character
c)
A comment in code
d)
A background image
2.
Which statement describes a variable?
a)
A command that draws shapes
b)
A fixed value in a program
c)
A container used to store data
d)
A way to display output
3.
What is the purpose of a loop in a program?
a)
To run a block of code once
b)
To stop a program from running
c)
To repeat a block of code multiple times
d)
To define variables
4.
Which Python symbol is used to make a comment?
a)
@
b)
//
c)
#
d)
!
5.
Which coordinate represents the center of the stage in Codesters?
a)
(0, 0)
b)
(100, 100)
c)
(-240, -240)
d)
(240, 240)
6.
What is the purpose of a background in a program like Codesters?
a)
To control sprite behavior
b)
To store user input
c)
To set the scene or environment
d)
To hold a variable
7.
Which of the following best describes a sprite?
a)
A piece of text
b)
A line of code
c)
An object that can move or interact on stage
d)
A math operator
8.
Which symbol is used to assign a value to a variable in Python?
a)
0
b)
=
c)
:
d)
::
9.
Which type of loop repeats a set number of times in Python?
a)
While loop
b)
For loop
c)
Do-while loop
d)
Forever loop
10.
What does the range() function do in Python?
a)
Adds numbers together
b)
Creates a list of numbers
c)
Draws a shape
d)
Loops forever
11.
What does an if statement do in a program?
a)
Repeats code
b)
Stores data
c)
Checks a condition
d)
Moves a sprite
12.
Which is true about if-else statements?
a)
They only run once
b)
They check two conditions
c)
They provide two possible outcomes
d)
They are used for lists
13.
What does (x, y) refer to in Codesters?
a)
A variable
b)
A condition
c)
A location on the stage
d)
A background color
14.
What is an example of an event in Codesters?
a)
Changing a background
b)
Creating a sprite
c)
Clicking a button
d)
Adding a comment
15.
What is dot notation used for?
a)
Making lists
b)
Describing locations
c)
Accessing an object’s property or method
d)
Creating loops
16.
What is the purpose of comments in code?
a)
To run code faster
b)
To explain what the code does
c)
To create loops
d)
To store numbers
17.
Which of these is a string in Python?
a)
42
b)
True
c)
"Hello"
d)
range(5)
18.
What is an argument in coding?
a)
A math symbol
b)
A variable
c)
A value passed into a function
d)
An error message
19.
What is an algorithm?
a)
A random error
b)
A type of comment
c)
A step-by-step set of instructions
d)
A sprite animation
20.
How do you calculate the mean of a set of numbers?
a)
Add the numbers and divide by how many there are
b)
Subtract the smallest from the largest
c)
Choose the most common number
d)
Multiply all the numbers
21.
What is the median of the set: 3, 7, 9?
a)
7
b)
3
c)
9
d)
6
22.
What is the mode of this list: 2, 4, 4, 6, 7?
a)
2
b)
4
c)
6
d)
7
23.
Why would you use a label for an image in your program?
a)
To hide the image
b)
To track its location
c)
To identify or describe the image
d)
To delete it later
24.
What does it mean to increment a variable?
a)
Multiply it
b)
Replace it
c)
Add to its value
d)
Remove it
25.
Which of the following creates a list in Python?
a)
'list'
b)
(1, 2, 3)
c)
{1, 2, 3}
d)
[1, 2, 3]
26.
What does a dot plot show?
a)
A series of shapes
b)
Changes over time
c)
Frequencies of data values
d)
Sprite positions
27.
What is a bug in a program?
a)
A feature
b)
A math problem
c)
A coding error
d)
A comment
28.
What is a syntax error?
a)
When a loop runs too long
b)
A mistake in the rules of the language
c)
A misspelled variable
d)
When the output is incorrect
29.
Which symbol is used for multiplication in Python?
a)
*
b)
x
c)
X
d)
^
30.
Which of these is a Python command?
a)
sprite.turn_left(90)
b)
repeat
c)
click
d)
draw_shape
31.
Conditionals are used to:
a)
Repeat steps
b)
Draw sprites
c)
Make decisions based on conditions
d)
Save files
32.
Which symbol represents division in Python?
a)
/
b)
//
c)
%
d)
:
33.
What does the 'break' keyword do in a loop?
a)
Skips the loop
b)
Ends the loop early
c)
Starts the loop over
d)
Increases a variable
34.
What is the main function of a computer’s CPU?
a)
Store files
b)
Process data
c)
Display output
d)
Connect to the internet
35.
Which part of the computer is responsible for displaying images and text?
a)
Mouse
b)
CPU
c)
Monitor
d)
Keyboard
100 %
