Python Programming Quiz 3

Python Programming Quiz 3

Professional Development

10 Qs

quiz-placeholder

Similar activities

Práctica General 16 de noviembre de 2018

Práctica General 16 de noviembre de 2018

7th Grade - Professional Development

14 Qs

Aljabar

Aljabar

Professional Development

15 Qs

Visualización

Visualización

Professional Development

10 Qs

Prueba diagnóstica 4°

Prueba diagnóstica 4°

Professional Development

13 Qs

CAE A OADS UT7 ALMACENES SANITARIOS

CAE A OADS UT7 ALMACENES SANITARIOS

Professional Development

10 Qs

ULANGAN HARIAN

ULANGAN HARIAN

Professional Development

10 Qs

MTK SIMPLE

MTK SIMPLE

Professional Development

15 Qs

BUỔI 2: ÔN TẬP

BUỔI 2: ÔN TẬP

KG - Professional Development

10 Qs

Python Programming Quiz 3

Python Programming Quiz 3

Assessment

Quiz

Mathematics

Professional Development

Practice Problem

Medium

Created by

Suraj Singh

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of this loop with a break statement?

for i in range(5):

if i == 3:

break

print(i)

0 1 2

0 1 2 3 4

1 2 3

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? for i in range(3): print(i * 2)

2 4 6

0 2 4

0 1 2

1 2 3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? count = 0 while count < 3: print(count) count += 1

0 1 2

0 1 2 3

1 2 3

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? for i in range(4): if i == 2: continue print(i)

0 1 2 3

0 1 3

1 2 3

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of this code snippet? count = 5 while count > 0: print(count) count -= 2

5 3 1

5 4 3 2 1

5 3

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? for i in range(2, 6): print(i + 1)

2 3 4 5 6

1 2 3 4 5

3 4 5 6 7

2 3 4 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above

prints all the odd numbers between 1 and 20

prints all even numbers between 1 and 20

print all the odd numbers between 1 and 21

prints all the even numbers between 1 and 21

Create a free account and access millions of resources

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

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

Already have an account?