
Quiz on Flow of Control in Python
Authored by sapna Pradeep
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary concept of sequence in Python?
Executing statements in random order
Executing statements one after another
Executing statements only when conditions are met
Executing statements based on user input
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control structure allows for decision making in Python?
Loop
Function
If..else statement
Variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(5 - 7)?
0
2
5
-2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'elif' statement do in Python?
Repeats the if statement
Ignores the if statement
Checks another condition if the first is false
Ends the if statement
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of indentation in Python?
To comment out code
To define blocks of code
To create variables
To make the code look good
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a looping construct in Python?
Function
For loop
If statement
Variable assignment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: for i in range(3): print(i)?
0 1 2 3
1 2
1 2 3
0 1 2
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
36 questions
Email Etiquette & Parts of an Email
Quiz
•
9th - 12th Grade
40 questions
XII MM [DESAIN MULTIMEDIA INTERAKTIF] PAS
Quiz
•
12th Grade
40 questions
FE-Practice # 1
Quiz
•
12th Grade - University
40 questions
การงาน+เทคโน ป.6
Quiz
•
12th Grade
45 questions
Quiz TIK
Quiz
•
12th Grade
38 questions
1.1 Architecture of CPU
Quiz
•
9th - 12th Grade
41 questions
Test próbny EE.09 (Bazy danych)
Quiz
•
9th - 12th Grade
40 questions
แบบทดสอบ Coding : Micro Python 1
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade