Python Ranges and Operators

Python Ranges and Operators

12th Grade

17 Qs

quiz-placeholder

Similar activities

TESTING

TESTING

1st Grade - Professional Development

16 Qs

Lesson 3 Getting Started with C Programming

Lesson 3 Getting Started with C Programming

12th Grade - University

14 Qs

Basics of App Coding

Basics of App Coding

8th - 12th Grade

22 Qs

Introduction to Python Programming Quiz 9E

Introduction to Python Programming Quiz 9E

10th Grade - University

13 Qs

Java If/else/ switch

Java If/else/ switch

9th - 12th Grade

20 Qs

Exploring the Basics of C Programming

Exploring the Basics of C Programming

11th Grade - University

20 Qs

Python Fundamentals and Programming

Python Fundamentals and Programming

11th - 12th Grade

13 Qs

ITGS - IT Systems (Hardware)

ITGS - IT Systems (Hardware)

10th - 12th Grade

14 Qs

Python Ranges and Operators

Python Ranges and Operators

Assessment

Quiz

Other

12th Grade

Hard

Created by

Marissa Montes

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?