
Unit 9
Authored by Lisa Genua
Computers
8th Grade
Used 1+ 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
30 sec • 1 pt
Which of the following is the correct way to declare a function in python?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to call a function named print_sum?
def print_sum()
print_sum
print_sum()
print_sum():
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code samples correctly passes the number 10 as an argument to the function print_number?
print_number(10)
print_number()
print(10)
10(print_number)
print print_number
print 10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which namespace is the variable x defined in the program on the left?
function namespace
global namespace
object namespace
class namespace
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which namespace is the variable y declared in the function on the left?
function namespace
global namespace
object namespace
class namespace
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code snipped on the left:
Which of the following additional functions could be safely added to this code, without causing an error?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions successfully returns double the variable ‘number’?
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
15 questions
Algorithms
Quiz
•
7th - 10th Grade
11 questions
What is a computer
Quiz
•
KG - University
13 questions
Nhập môn HTML
Quiz
•
6th - 9th Grade
10 questions
CLASS 8 CODING
Quiz
•
8th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
10 questions
Python
Quiz
•
3rd - 10th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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