
Python 101 Final Test

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Erkingul Andakulova
Used 6+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
Administrasi Sistem Jaringan

Quiz
•
1st - 12th Grade
36 questions
JavaScript

Quiz
•
12th Grade
37 questions
AP CS A Midterm Review

Quiz
•
9th - 12th Grade
37 questions
End of Unit Assessment - EduBlocks

Quiz
•
9th - 12th Grade
40 questions
Scratch Midterm Revision

Quiz
•
9th Grade
35 questions
JavaScript Control Flow and Loops.

Quiz
•
10th Grade - University
44 questions
Algorithms and Pascal Programming

Quiz
•
9th - 10th Grade
40 questions
Computer Science 4.6

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade