Python introduction 2.1
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
M Ellis
Used 2+ times
FREE Resource
Enhance your content in a minute
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why use comments in a program?
To make the program run faster
To add explanations for the code
To increase the file size
To change the programming language
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What character is used to add comments in Python?
$
@
#
&
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to the text after the # character in Python?
It is executed by the computer
It is ignored by the computer
It causes an error
It is converted to a string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of creating a new variable called average in the program?
To store the first number
To display the total of the numbers
To calculate the average of the three numbers
To input the second number
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the formula used to calculate the average of the three numbers?
average = total/2
average = total/3
average = total/number3
average = total*3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `int(input())` function in the Python code?
To display a message
To convert user input into a string
To convert user input into an integer
To calculate the average
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `print('Total', total)` line do in the code?
It calculates the total
It prints the total value
It inputs the total from the user
It resets the total to zero
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
23 questions
HTML pārbaudes darbs
Quiz
•
7th - 8th Grade
24 questions
Computer Systems Homework
Quiz
•
7th - 9th Grade
22 questions
PLTW CSIM Unit 1
Quiz
•
8th Grade
22 questions
Class 7 revision
Quiz
•
5th - 12th Grade
30 questions
Komputer Jaringan Dasar
Quiz
•
1st Grade - Professio...
22 questions
Functions in RobotC
Quiz
•
7th - 11th Grade
22 questions
Konkurs wiedzy - Bezpieczeństwo w "sieci"
Quiz
•
1st - 8th Grade
22 questions
1ERO SOCIALES COMPUTACION
Quiz
•
6th - 8th 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
