
Tynker Python Lesson 3-4
Assessment
•
Ingrid Cruz
•
Computers
•
7th - 10th Grade
•
5 plays
•
Medium
Student preview

13 questions
Show all answers
1.
MULTIPLE CHOICE
30 sec • 1 pt
Which of the following makes the character shoot if there is an enemy ahead? Mark all that apply.
2.
MULTIPLE CHOICE
30 sec • 1 pt
The following two pieces of code do the same thing:
if condition :
forward()
# next code
if condition :
forward()
else :
fire()
3.
MULTIPLE CHOICE
30 sec • 1 pt
You are given three variables, A=True, B=False and C=False. What is the value of the expression A and ( B or C )?
4.
MULTIPLE CHOICE
30 sec • 1 pt
Which part of a conditional goes after the if keyword and before the colon?
5.
MULTIPLE CHOICE
30 sec • 1 pt
When would you use an "if-else" statement over an "if" statement?
6.
MULTIPLE CHOICE
30 sec • 1 pt
There is no difference between an "if" statement and an "if-else" statement.
7.
MULTIPLE CHOICE
30 sec • 1 pt
If you wanted to run different code given different conditions, how would you do that?
8.
MULTIPLE CHOICE
30 sec • 1 pt
When running this code, what will the character do if there is an enemy?
if not enemy_in_sight() :
fire()
9.
MULTIPLE CHOICE
30 sec • 1 pt
What would the following code do?
while True :
print(“Hello”)
10.
MULTIPLE CHOICE
30 sec • 1 pt
"While" loops always terminate eventually.
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
Latihan ICT Part 2
•
10th Grade
Quiz #3 - Chapter 1-3 Review
•
9th - 12th Grade
M5: Does my program work correctly?
•
9th Grade
Python Basics for Grade 8
•
8th Grade
SLR2.2 - Mastering While Loops
•
9th Grade
Iteration
•
9th Grade
Introduction to Computer Science
•
1st - 9th Grade
Iteration - for loop
•
9th Grade