Control Statements in Python

Quiz
•
Computers
•
11th Grade
•
Medium
Archana Pataskar
Used 173+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 12 pts
Function range(3) is equivalent to "
range(1,3)
range(0,3)
range(0,3,1)
range(1,3,0)
2.
MULTIPLE CHOICE QUESTION
30 sec • 12 pts
Consider the following loop given below :
for i in range(5):
print(i)
How many times will this loop run ?
5
0
infinite
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
for word in "Jump Statement":
if word == "u":
break
print (word, end='')
Jump Statement
Jump
J
Ju
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output of following code
for word in "Jump Statement":
if word == "e":
continue
print (word, end='')
Jump Statement
Jump Statmnt
Jump
Statmnt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following jump statement is used to terminate the loop?
continue
goto
pass
break
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function is used in python for loop to specify the initial, final and increment values?
range
format
input
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The condition in the statement should be in the form of
Arithmetic r relational expression
Arithmetic or Logical expression
Relational or Logical expression
Arithmetic
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
15 questions
Python Fundamentals Quiz

Quiz
•
11th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
19 questions
Python Loops Review

Quiz
•
9th - 12th Grade
16 questions
For and While Loops in Python

Quiz
•
9th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
20 questions
AQA GCSE Computer Science Paper 1

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade