
LAB05

Quiz
•
Information Technology (IT)
•
University
•
Hard

Salman Khwaja
Used 2+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
a=0
if a: print("X")
elif a==False: print("Y")
else: print("Z")
X
Y
False
Z
9.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
a= "Z"
if a == "X" or "x": print ("A")
elif a == "Y" or "y": print("B")
elif a == "Z" or "z": print("C")
else: print("D")
A
B
C
D
Similar Resources on Wayground
10 questions
boujelben

Quiz
•
University
10 questions
Scratch - základy

Quiz
•
6th Grade - University
7 questions
LAB04

Quiz
•
University
10 questions
ASSESMEN SUMATIF

Quiz
•
2nd Grade - University
14 questions
Блиц-опрос по логике

Quiz
•
9th Grade - University
6 questions
python for ลูป

Quiz
•
University
10 questions
C Programming Quiz

Quiz
•
University
12 questions
Графічний інтерфейс Python

Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University