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
26 questions
Artificial Intelligence Quiz1

Quiz
•
4th - 8th Grade
24 questions
Python - 6 клас

Quiz
•
6th - 8th Grade
31 questions
Python Unit 02 - Libraries and Variables

Quiz
•
6th - 9th Grade
25 questions
Python MCQ

Quiz
•
6th - 8th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
30 questions
Python Basics

Quiz
•
8th - 10th Grade
26 questions
Y8 - SUM2 - Intro to Python (No Iteration)

Quiz
•
8th Grade
22 questions
Introduction to Python Theory TERM 4 Grade 8

Quiz
•
8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th 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
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology

Quiz
•
4th - 8th Grade
11 questions
Technology Acceptable Use

Quiz
•
6th - 8th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
15 questions
Student Technology Agreement

Quiz
•
6th - 8th Grade
10 questions
Acceptable Use of Technology

Quiz
•
7th - 8th Grade