Search Header Logo

50 Question Programming Quiz (Python Challenges 2 to 10) 191224

Authored by Patrick Kilgarriff

Computers

6th Grade

Used 3+ times

50 Question Programming Quiz (Python Challenges 2 to 10) 191224
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the purpose of this Python program?

To calculate the sum of two numbers

To calculate the difference between two numbers

To calculate the average of two numbers

To print two numbers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variable stores the calculated average in this program?

num1

num2

average

result

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this program calculate?

Perimeter of a rectangle

Area of a rectangle

Volume of a rectangle

Diagonal of a rectangle

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the formula used to calculate the area in this program?

width + height

width - height

width * height

(width + height) / 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this program output if the user inputs 6 and 3 for num1 and num2 respectively?

9

2

3

18

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will happen if num2 is 0 in this program?

Syntax error

Runtime error (division by zero)

It will print The result is: 0

It will print The result is: infinity

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this Python program output if the user enters "John" for the name variable and "French" for the subject variable?

I like French as well!

I like John as well!

What is your favourite subject John?

It will throw an error

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?