
Loops in python Python Quiz 3

Quiz
•
Computers
•
11th Grade
•
Medium
Reshma Kamthe
Used 44+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
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
A while loop equivalent of the for loop above is
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
print("Hello" + 2 + "world")
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
Similar Resources on Wayground
21 questions
Python Strings

Quiz
•
11th Grade
20 questions
quiz dasar python

Quiz
•
1st Grade - University
22 questions
Strings in python -1

Quiz
•
11th Grade
20 questions
Python Basics ;)

Quiz
•
11th Grade
25 questions
Python for Absolute Beginners

Quiz
•
8th - 12th Grade
20 questions
Programming

Quiz
•
9th - 11th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
20 questions
List Manipulations

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade