wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Science

Total questions: 18

Worksheet time: 5hrs 30mins

Name
Class
Date
1.
_______ is how we write code
a)
Syntax
b)
Loops
c)
Variables
d)
Functions
2.
In the code example: hero.moveRight(), what is the object?
a)
move
b)
hero
c)
()
d)
Right
3.
In the code example: hero.moveRight(), how is it read aloud? 
a)
hero move right
b)
move right hero
c)
hero dot move right
d)
right move dot hero
4.
________ are the building blocks, they are things or characters that perform actions
a)
Variable
b)
Functions
c)
Syntax
d)
Objects
5.
__________ are actions an object can do
a)
Value
b)
Syntax
c)
Objects
d)
Functions
6.
Function names are always followed by parentheses 
a)
True
b)
False
7.
Order does not matter
a)
True
b)
False
8.
A computer cannot understand the directions of code even if there is a mistake in the syntax? 
a)
True
b)
False
9.
_____ is a way of repeating code
a)
While
b)
Expression
c)
Loop
d)
Lopp 
10.
What is a key word in Loop?
a)
True
b)
While
c)
Expression
d)
Action
11.
___________ can be evaluated as True or False
a)
Expression
b)
Infinite Loop
c)
Object
12.
Infinite Loop is a loop that repeats forever
a)
True
b)
False
13.
What do you type for an infinite loop?
a)
while True:
b)
while True ()
c)
While true:
d)
While True ()
14.
How much indention is required for the action to be part of the loop
a)
3 spaces
b)
4 spaces
c)
5 spaces
d)
2 spaces
15.
_________ holds your data for later
a)
Object
b)
Expression
c)
Variable
d)
Value
16.
In the code example: enemy = "Kratt", the varible is 
a)
"Kratt"
b)
Kratt
c)
d)
enemy
17.
enemy = "Kratt" 
hero.attack("Kratt") is the same as 
a)
hero.attack(friend)
b)
Hero.attack(enemy)
c)
hero.attack(enemy2)
d)
hero.attack(enemy)
18.
______ is a type of programming data that represents text
a)
Basic
b)
Syntax
c)
Argument
d)
String