Search Header Logo

Python Ranges and Operators

Authored by Marissa Montes

Other

12th Grade

Used 1+ times

Python Ranges and Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code

Salary: 12000 Salary: 8000

Salary: 8000 Salary: 12000

The program failed with errors

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

The program executed with errors

[‘Jon’, ‘Kelly’, ‘Scott’, ‘Jessa’]

[‘Jon’, ‘Kelly’, ‘Jessa’, ‘Scott’]

[‘Jon’, ‘Scott’, ‘Kelly’, ‘Jessa’]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

True

True

True

False

False

True

False

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

20

30

The program executed with errors

24

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

 {‘Vicki’, ‘Jodi’, ‘Garry’, ‘Eric’}

{‘Jodi’, ‘Vicki’, ‘Garry’, ‘Eric’}

The program executed with error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

py

yn

pyn

yna

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Can we use the “else” block for for loop?

for example:

No

Yes

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?