
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
Create a free account and access millions of resources
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
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
13 questions
Lekcja14 7-8
Quiz
•
7th - 8th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
17 questions
Traffic Light Project Quiz
Quiz
•
9th Grade
10 questions
Arduino
Quiz
•
7th - 12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
