Python introduction 2.1
Quiz
•
Computers
•
8th Grade
•
Medium

M Ellis
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
22 questions
Importance of AI
Quiz
•
2nd Grade - University
22 questions
Functions in RobotC
Quiz
•
7th - 11th Grade
22 questions
Input and Output Devices Recap
Quiz
•
8th - 11th Grade
25 questions
Test Operatii Word+Formule Word
Quiz
•
1st - 10th Grade
25 questions
Microsoft Word 2016 Vocabulary
Quiz
•
8th Grade
23 questions
ICDL Phần mềm sử lý văn bản
Quiz
•
6th - 8th Grade
22 questions
Class 7 revision
Quiz
•
5th - 12th Grade
25 questions
Tes Diagnostik Informatika Kelas 8
Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade