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...

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?