
Python 101 Final Test
Authored by Erkingul Andakulova
Computers
9th - 12th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following makes the character fire 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
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
3.
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
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following pieces of code are the exact same in functionality.
True
False
5.
MULTIPLE CHOICE QUESTION
45 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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When running this code, what will the character do if there is an enemy?
if not enemy_in_sight() :
fire()
fire
nothing
walk forward
jump
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this code?
hello
world
hello
world
goodbye
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
35 questions
Mid Tes HTML Quiz
Quiz
•
11th Grade
40 questions
แบบทดสอบ Coding : Micro Python 1
Quiz
•
9th - 12th Grade
35 questions
DATABASE QUIZ
Quiz
•
9th - 12th Grade
35 questions
PLTW CSIM Lesson 1 Assessment
Quiz
•
5th - 9th Grade
39 questions
Domain 1.0 (DD1)
Quiz
•
9th - 12th Grade
40 questions
แบบทดสอบก่อน-หลังเรียน เรื่อง โปรแกรมภาษา
Quiz
•
9th Grade
45 questions
Quiz TIK
Quiz
•
12th Grade
38 questions
1.1 Architecture of CPU
Quiz
•
9th - 12th 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