Loops in python Python Quiz 3

Loops in python Python Quiz 3

11th Grade

24 Qs

quiz-placeholder

Similar activities

List and Tuples

List and Tuples

9th - 12th Grade

22 Qs

Python year 9

Python year 9

8th - 11th Grade

20 Qs

Синтаксис Python

Синтаксис Python

7th - 11th Grade

21 Qs

General Python year 10

General Python year 10

9th Grade - University

20 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

LIST in PYTHON

LIST in PYTHON

9th - 12th Grade

20 Qs

list 6th

list 6th

7th Grade - University

20 Qs

Int Prog: Lists and Functions

Int Prog: Lists and Functions

9th - 12th 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 44+ 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?