
Day 4 Python Quiz Flow controls
Authored by Oshi Maga
Education
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1. Which of the following is not used as loop in Python?
A. for loop
B. while loop
C. do-while loop
D. None of the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2. Which one of the following is a valid Python if statement :
A. if a>=2
B. if (a >= 2)
C. if (a => 22)
D. if a >= 22
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
3. Which of following is not a decision-making statement.
A. if statement
B. if-elif statement
C. for statement
D. if -else statement
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
4. Point out the correct statement?
A. Break will execute a loop while a condition is true
B. The if/else statement conditionally evaluates two statements
C. Blocks are evaluated until a new line is entered after the closing brace
D. Single statements are evaluated when a new line is typed at the start of the syntactically complete statement
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5. The order of statement execution in the form. of top to bottom, is known _____ as construct.
A. flow
B. selection
C. repetition
D. sequence
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
6. What does ~~~~~~5 evaluate to ??
A. +5
B. -5
C. +11
D. -11
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
7. Which is the correct operator for power(xy)?
A. X^y
B. X**y
C. X^^y
D. None of the mentioned
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?