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
Similar Resources on Wayground
25 questions
BAB 4 : Sistem Komputer

Quiz
•
8th Grade
30 questions
K8_Ôn tập giữa kỳ II

Quiz
•
8th Grade
23 questions
Coding Vocabulary

Quiz
•
5th - 8th Grade
32 questions
PY4E Chapters 2-3 Quiz

Quiz
•
8th Grade
26 questions
Y9 Base Assessment SP1 2025

Quiz
•
8th Grade
30 questions
Python программалоо тили

Quiz
•
7th - 11th Grade
25 questions
Fremantle College - Technology Week 2020

Quiz
•
7th - 8th Grade
28 questions
Revision Second Preparatory

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade