wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Ozaria Final Assessment

Total questions: 31

Worksheet time: 16mins

Name
Class
Date
1.
1. A piece of code that lets the object perform an action is called the
a)
method
b)
algorithm
c)
argument
d)
program
2.
2. In this line of code, which is the argument?
a)
helper
b)
build
c)
("leftArrow")
d)
helper.build
3.
3. Which line of code has the logic error?
a)
line 1
b)
line 2
c)
line 3
d)
line 4
e)
line 5
4.
4. Choose the lines in the code below that contain an error. Select all that apply.
a)
line 1
b)
line 5
c)
line 2
d)
line 3
e)
line 4
5.
5. Look at the map. How many times should the loop run in line 3?
a)
1
b)
2
c)
3
d)
4
6.
6. Identify the lines of the code below that have syntax errors. Choose all that apply.
a)
line 1
b)
line 2
c)
line 3
d)
line 4
e)
line 5
7.
7. Which of the following variables is written correctly?
a)
"steps" = 2
b)
steps = 2
c)
(steps) = 2
d)
steps == 2
8.
8. What should the value of the variable (steps) be in order for the hero to collect all 3 totems and get to the totem crate at the far right of the map?
a)
1
b)
2
c)
3
d)
4
9.
9. Which of the following is a correct string variable?
a)
myName = Vega
b)
myname == Vega
c)
myName: "Vega"
d)
myName = "Vega"
10.
10. Which code sequence best represents the flowchart?
a)
1.
b)
2.
c)
3.
d)
4.
11.
11. What will happen when you run this code? Use the image to help you answer.
a)
the hero first casts an illusion mist, and then moves right
b)
the hero just moves right
c)
nothing happens
12.
12. The else statement in an if/else conditional only runs if...
a)
the condition is false
b)
the condition is true
c)
non of the above
13.
13. Why would you use a for loop in your code?
a)
to determine if a condition is true or false
b)
if you want to repeat an action multiple times
c)
to store different data types
d)
to reassign the value of a variable
14.
14. How many times will the actions in this code repeat?
a)
1
b)
2
c)
3
d)
4
15.
15. How many pencils will you have at the end of this loop?
a)
1
b)
2
c)
3
d)
4
e)
5
16.
16. On which line does the inner loop begin?
a)
line 1
b)
line 2
c)
line 3
d)
line 4
e)
line 5
17.
17. For the code in question #16 above, how many times does the inner loop repeat in total?
a)
2 times
b)
3 times
c)
6 times
d)
it does not repeat
18.
18. When would you want to use a while loop instead of a for loop?
a)
When you want to repeat a loop while a condition is true
b)
When you want more than one loop in your program
c)
When you want a loop to repeat a certain number of times
d)
None of the above
19.
19. If you need to hide until the enemy is more than 3 steps away in order to move, which line of code would you need in line 7?
a)
if distanceToEnemy > 3:
b)
while enemyDistance < 3:
c)
if hero.canMoveRight():
d)
hero.getDistanceTo(nearestEnemy)
20.
20. What type of conditional do you use when you need to check several conditions before performing an action?
a)
if else conditional
b)
while loop inside a conditional
c)
else if conditional
d)
none of the above
21.
21. What is another way to write this statement to increase the variable by 1?
a)
defeatedEnemies >=1
b)
defeatedEnemies <= 1
c)
defeatedEnemies += 1
d)
defeatedEnemies != 1
22.
22. If you want to check that multiple conditions are true before performing an action, you would use:
a)
an AND compound conditional statement
b)
an IF/ELSE conditional statement
c)
an ELSE/IF conditional statement
d)
an OR compound conditional statement
23.
23. If you want to check multiple conditions to see if either of them is true before performing an action, you would use:
a)
an AND compound conditional statement
b)
an IF/ELSE conditional statement
c)
an ELSE/IF conditional statement
d)
an OR compound conditional statement
24.
24. To reuse a block of code multiple times, what would you use so that you don't have to type it in each time?
a)
a conditional
b)
an algorithm
c)
a function
d)
a variable
25.
25. Which is the correct way to define a function for brushing your teeth?
a)
brushTeeth = def():
b)
function = brushTeeth():
c)
def brushTeeth():
d)
brushTeeth = function(brushTeeth):
26.
26. How many times will Noodles move down in the code below?
a)
1
b)
2
c)
3
d)
4
27.
27. Which is an example of an output device?
a)
scanner
b)
keyboard
c)
printer
d)
mouse
28.
Which of these tasks represents the input?
a)
checking which letter has been pressed
b)
pressing a letter on the keyboard
c)
showing the correct letter on the screen
d)
none of the above
29.
28. Data encryption is used to:
a)
encode a message so that only authorized people can access the message or information
b)
reduce the size of data files for faster transfer speeds
c)
translate computer data into plain English
d)
none of the above
30.
29. A criminal who creates a fake website to get your personal or financial information is using which type of hack?
a)
Ransomware
b)
Password Attack
c)
Phishing
d)
None of the above
31.
30. What is Assistive Technology?
a)
any device or service that directly assists an individual with a disability
b)
a language translator built in to websites
c)
Parental controls used to block certain web content from minors
d)
none of the above