CS Python Fundamentals Quiz 2 Review & Practice

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Scott Chamberlain
Used 6+ times
FREE Resource
12 questions
Show all answers
1.
MATCH QUESTION
2 mins • 5 pts
Match the following vocabulary words to their definitions.
Function
A collection of code and functions that perform similar tasks.
Import
Command that pulls in code to add functions to your code.
Module
A symbol that defines a math operation or calculation.
Assignment
The process of storing a value in a variable.
Operator
A collection of commands given a name, for example, input( ).
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the program shown here?
0
2
3
7
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which is NOT a valid Python variable name?
4ever
fitty_cent
airForce1
BIGdog
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the BEST choice for the name of a variable used to store the grade on a first quarter report card?
g
1qtr
q1Grade
GRADE
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the code shown here?
0
16
-16
15
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
ONE of the following expressions is equivalent to 12. Choose the correct expression.
4 + 2 * 6 / 3
(4 + 2) * 6 / 3
4 + 2 * (6 / 3)
4 + (2 * 6) / 3
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If n=5, which of the following lines of code will correctly produce the output below:
The answer is 15
print ("The answer is: " + n*3)
print ("The answer is: " + int(n*3))
print ("The answer is: " + str(n*3))
print ("The answer is: " + str(n)*3)
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
16 questions
Floating point binary

Quiz
•
12th Grade
10 questions
1.2 Basic String Manipulation

Quiz
•
9th Grade
16 questions
National 5 Computing Science Prelim Revision

Quiz
•
9th - 12th Grade
10 questions
I Can Code!

Quiz
•
KG - University
13 questions
Python Iteration

Quiz
•
10th Grade
15 questions
AP CSP Exam Review: Big Idea 3

Quiz
•
8th - 10th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade