
LAB05
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Salman Khwaja
Used 2+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
a = "August"
b = "July"
c = "January"
if a < b:
print("b1", end="")
if b < c:
print("b2", end="")
elif a < c:
print("b3", end="")
else:
print("b4", end="")
b1
b1b2
b3
b1b3
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
num = 25
if num != 0:
if num >= 5.0:
print("first block is executed")
elif num == 5:
print("third block is executed")
else:
print("second block is executed ")
else:
print("No output")
third block is executed
first block is executed
No output
second block is executed
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
num = 25
num = num//5
if num%1 == 0:
print(str(num)+ " is integer")
else:
print(str(num)+ " is float")
5 is float
5.0 is float
5 is integer
5.0 is float
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the range of values of x for which the following code will print the word two?
x=int(input("Enter x: "))
if x > 3 or x < 6:
print("one")
elif x <= 3:
print("two")
else:
print("Three")
all values <= 3
values <= 3 or values >= 6
The code will never print the word two
values > 3 and values < 6
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
s="Beta"; t="alpha"
if s<t: print("L")
elif s==t: print("=")
else: print("G")
L
=
G
No output
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
vals=[0,1,2];
x=False
if x in vals: print("I",end="")
elif x==0 in vals: print("J",end="")
else: print("K",end="")
I
J
K
None
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
x=10;y=5;z=30
if not (x<z and x>y): print(x)
else: print(x+z)
10
5
30
40
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
10 questions
Asesmen Harian 1
Quiz
•
11th Grade - University
10 questions
高二資訊課補考題目
Quiz
•
11th Grade - University
11 questions
13YO - Effective Presentation Skills and Techniques
Quiz
•
8th Grade - University
12 questions
Review loops
Quiz
•
8th Grade - University
10 questions
Fundamentos de Programación en Python
Quiz
•
6th Grade - University
11 questions
html basics
Quiz
•
8th Grade - University
11 questions
Python_Recap_Session3_GGITSummerCamp2025
Quiz
•
University
10 questions
Latsol
Quiz
•
10th Grade - University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
