Python introduction 2.1

Python introduction 2.1

8th Grade

27 Qs

quiz-placeholder

Similar activities

Arduino Components

Arduino Components

7th - 8th Grade

25 Qs

Year 8_Communication

Year 8_Communication

7th - 9th Grade

25 Qs

FNaF 2

FNaF 2

5th Grade - University

24 Qs

Grade 8

Grade 8

8th Grade

26 Qs

Powerpoint - ponavljanje 6. razred

Powerpoint - ponavljanje 6. razred

5th - 8th Grade

27 Qs

Fun Computing KS2

Fun Computing KS2

3rd - 12th Grade

22 Qs

IC3GS6 LEVEL 2 PHẦN 4

IC3GS6 LEVEL 2 PHẦN 4

8th Grade

30 Qs

review 94-116

review 94-116

KG - University

23 Qs

Python introduction 2.1

Python introduction 2.1

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

M Ellis

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?