
Simple lybrary quiz
Authored by Aigerim Zholochieva
Computers
University
Used 1+ 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
30 sec • 1 pt
Which loop is most appropriate to keep showing the menu until the user exits?
for loop
if statement
while loop
break loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this line represent?
["Harry Potter", "Available"]
A dictionary
A string
A list containing book title and status
A tuple
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to check multiple conditions?
for
while
if / elif / else
print
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should happen if a user tries to borrow a book that is already borrowed?
Remove the book
Ignore the request
Show a message
Exit the program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should the program display if no books exist?
Nothing
Error
"Library is empty" message
Exit immediately
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is commonly used to stop a loop in the menu?
continue
break
stop
return
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the correct function for outputting information.
show()
print()
display()
output()
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?