Python Console Basics 1.1
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Michele Templeton Freeman
Used 2+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, print refers to:
the function used to display the output to the console
the function for performing mathematical calculations
the keyword used to define a new variable
the method for reading user input
Answer explanation
In Python, the print function is used to display output to the console.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the line of Python code will display the words Hello World!
print_Hello_World!
print"Hello World!"
print('Hello World!')
print(Hello World!)
Answer explanation
The correct choice is print('Hello World!') because it uses the correct syntax to display the words 'Hello World!'
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function is:
A mathematical equation
A block of code that performs a specific task
A type of variable
A conditional statement
Answer explanation
A function is a block of code that performs a specific task.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The syntax for calling a function is
function_name( )
function_name("")
function name:
function name( )
Answer explanation
The correct syntax for calling a function is function_name( ).
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write a single line of code to display 20
Answer explanation
The correct choice is 0 because the code 'print("20")' will display the string '20'.
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
Fundamentals of Algorithms
Quiz
•
10th Grade
10 questions
Python Testing
Quiz
•
9th - 12th Grade
10 questions
Programação Front End - CSS avançado
Quiz
•
11th Grade
10 questions
Data Engineering y BigQuery V1
Quiz
•
12th Grade
10 questions
Vertex AI Pipelines V1
Quiz
•
12th Grade
10 questions
E-Tech Lesson 1
Quiz
•
11th Grade
10 questions
Python
Quiz
•
3rd - 10th Grade
10 questions
EMPTECH L4 Q2
Quiz
•
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
