Loops in python Python Quiz 3

Loops in python Python Quiz 3

11th Grade

24 Qs

quiz-placeholder

Similar activities

For Loop python

For Loop python

5th - 12th Grade

19 Qs

FD Theory Python 2

FD Theory Python 2

11th Grade - University

20 Qs

Python Test

Python Test

11th Grade

20 Qs

Python Easy

Python Easy

9th - 12th Grade

20 Qs

Python for Beginners

Python for Beginners

9th - 12th Grade

20 Qs

Python String Data Structure

Python String Data Structure

11th Grade

21 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Python outputs

Python outputs

7th - 11th Grade

20 Qs

Loops in python Python Quiz 3

Loops in python Python Quiz 3

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Reshma Kamthe

Used 45+ times

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The above program prints

Numbers 1 to 10 in reverse order

Numbers 1 to 11 in reverse order

Numbers 1 to 10

Numbers 1 to 11

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The code above prints all numbers between 1 and 30 that are

not divisible by 5

divisible by 5

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

A while loop equivalent of the for loop above is

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does this program print

2 + 2 = 4

4 + 4 = 8

8 + 8 = 16

16 + 16 = 32

32 + 32 = 64

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 4 = 6

2 + 6 = 8

2 + 8 = 10

2 + 10 = 12

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 2 = 4

2 + 4 = 6

2 + 6 = 8

2 + 8 = 10

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the output be from the following code?
print("Hello" + 2 + "world")
Hello 2 world
Hello2world
TypeError
HelloHelloworld

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

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?