
Tynker Python Lesson 3-4
Quiz
•
Computers
•
7th - 10th Grade
•
Medium
Ingrid Cruz
Used 5+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following makes the character shoot if there is an enemy ahead? Mark all that apply.
if enemy_in_sight() : long_jump()
if not enemy_in_sight() : fire()
if enemy_in_sight() : fire()
if enemy_in_sight() : forward()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following two pieces of code do the same thing:
if condition :
forward()
# next code
if condition :
forward()
else :
fire()
True
False
3.
MULTIPLE CHOICE QUESTION
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 )?
True
False
None
I don't know
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which part of a conditional goes after the if keyword and before the colon?
The word “if”
The word “else”
The code to run
The condition
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When would you use an "if-else" statement over an "if" statement?
When you want to stop running code once the condition is false
When you want to run different code if a condition is false
When you want to run code and then check if the condition is true after
They have the exact same function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
There is no difference between an "if" statement and an "if-else" statement.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you wanted to run different code given different conditions, how would you do that?
Combine all the conditions in one condition using “or”
Use “elif” statements
Put everything in the “else” statement
Create two functions
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
For loop
Quiz
•
8th Grade
17 questions
PSTS1 Informatika
Quiz
•
10th Grade
11 questions
Maintaining Hand Tools- CSS 9
Quiz
•
9th Grade
10 questions
NHTW Programming
Quiz
•
9th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
9 questions
Test Excel
Quiz
•
10th - 12th Grade
10 questions
UNIT 2.4 LOGIC
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
