Python introduction 2.1

Python introduction 2.1

8th Grade

•

27 Qs

quiz-placeholder

Similar activities

Micro: bit 8º

Micro: bit 8º

8th Grade

•

24 Qs

Scratch

Scratch

4th Grade - Professional Development

•

22 Qs

Year 8 - L3 Homework

Year 8 - L3 Homework

8th Grade

•

22 Qs

Introduction to computer

Introduction to computer

7th - 8th Grade

•

30 Qs

For Loops Code.org/ Lessons 6-10 (Flocabulary)

For Loops Code.org/ Lessons 6-10 (Flocabulary)

6th - 8th Grade

•

25 Qs

UH3 Informatika (Ganjil TP 2020/2021)

UH3 Informatika (Ganjil TP 2020/2021)

8th Grade

•

22 Qs

Round 1: Hack The Quest

Round 1: Hack The Quest

8th Grade - University

•

22 Qs

2022 SCIENCE&TECHNOLOGY COMPETITION

2022 SCIENCE&TECHNOLOGY COMPETITION

8th Grade

•

22 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?