Search Header Logo

Y8 - Python - Quiz 2

Authored by Courtney Owen

Computers

7th Grade

Used 2+ times

Y8 - Python - Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these describes what happens in a selection statement in programming?

A list of items is sorted
A block of code is chosen
A variable is declared
An array is looped through

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these words start a selection statement?

else
elif
if
select

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct structure of a selection statement in Python?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these operators is used to compare two values to see if they are equal to each other?

<=
!=
==
>=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Looking at the code, what are num1 and num2 known as?

Variables

Vestibules

Vectors

Viruses

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Looking at the code, what would be output if the code was run?

Equal

10

Nothing

13

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Looking at the code, what other type of statement would need to be included to add an alternative path to the selection statement?

alternative

else

instead

otherwise

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?