
Unit 6 Review
Authored by Julia McGreal
Computers
9th - 12th Grade
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way to declare a function in Python?
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following code samples correctly passes the number 10 as an argument to the function print_number?
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider this code snippet. x = 10, def add_nums(): y = 2, z = x + y, print(z) Which of the following additional functions could be safely added to this code, without causing an error?
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following functions successfully returns the number 10?
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What type of error occurs when a program is expecting an integer value and the user enters a string?
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Why do programmers use try and except statements when their code might throw an exception?
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Which of the programs below will print the following output?
I would like a green balloon.
def balloon_choice(color): print("I would like a " + color + " balloon.") balloon_choice("green")
def balloon_choice(color): print("I would like a " + color + " balloon.")
def balloon_choice(): print("I would like a " + color + " balloon.") balloon_choice("green")
def balloon_choice(): print("I would like a green balloon.") balloon_choice("green")
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
Systemy operacyjne w środowisku sieciowym
Quiz
•
6th - 12th Grade
15 questions
Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers
Quiz
•
12th Grade
15 questions
Pretest Peluang usaha
Quiz
•
11th Grade
11 questions
Chapter 7 , Testing
Quiz
•
10th Grade
10 questions
12th cs cha13
Quiz
•
12th Grade
10 questions
0610- Python
Quiz
•
9th - 10th Grade
10 questions
12 CS 6-10 One Mark
Quiz
•
12th Grade
10 questions
Review Quiz #2- Productivity Tools
Quiz
•
11th - 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade