
python conditional statements intermediate level
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
Hard
Krishna Kala
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output?
a,b=3,4
if a>b:
print("a")
if b>a:
print("b")
else:
print("else")
b
error
else
b
else
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output of the following code?
a,b=3,4
if a>b:
print("a")
if b>a:
print("b")
if a==b:
print("a=b")
else:
print("else")
b
error
else
b
else
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output of the following code?
x = 6
y = 9
z = 12
if x < y and y > z:
print("Condition 1")
elif x z > y and y + z < x 3:
print("Condition 2")
elif z // x == 2 or x + y == z:
print("Condition 3")
else:
print("Condition 4")
Condition 1
Condition 2
Condition 3
Condition 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code.?
p = 8
q = 3
r = 10
if p + q < r:
if q r > p p:
print("Outcome A")
elif r % q == 1:
print("Outcome B")
else:
print("Outcome C")
elif p % q == 2 and r - p > q:
print("Outcome D")
else:
print("Outcome E")
Outcome D
Outcome E
Outcome B
Outcome C
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what will be the output.?
X is greater
Y is greater
Syntax error
Indentation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = 7
b = 9
if a < b
print("A is less than B")
else:
print("A is greater or equal to B")
A is less than B
A is greater or equal to B
Syntax error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 10
y = "5"
if x > y:
print("X is greater than Y")
else:
print("Y is greater than or equal to X")
X is greater than Y
Y is greater than or equal to X
error
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Soal informatika kelas 7 Bab 3
Quiz
•
7th Grade - University
10 questions
QUIZ UNSUR PEMBENTUK PROMPT
Quiz
•
12th Grade
15 questions
Ulangan Harian Berpikir Komputasional
Quiz
•
9th Grade
10 questions
Thực hành một số tính năng của mạng xã hội
Quiz
•
11th Grade
10 questions
0- and 1-Pixel Art Activity
Quiz
•
9th - 12th Grade
15 questions
Quiz tentang Peranan Manusia dalam Menghadapi Teknologi Canggih
Quiz
•
12th Grade
10 questions
Quiz Arduino Level 1
Quiz
•
11th Grade
10 questions
Quizzi bài 29 Tin học 10
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
