
Quiz4
Authored by Mohand Mahmoud
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Return the string without any whitespace at the beginning or the end.
txt = " Hello World "
x =
txt.strip()
txt.split()
txt.format()
txt.capitalize()
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
print(bool("abc"))
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
if 5 == 10 ........... 4 == 4:
print("At least one of the statements is true")
in
or
and
||
4.
FILL IN THE BLANK QUESTION
1 min • 4 pts
fruits = ["apple", "banana", "cherry"]
Use the method to add "orange" to the fruits list.
5.
FILL IN THE BLANK QUESTION
1 min • 4 pts
fruits = ["apple", "banana", "cherry"]
Use the method to add "lemon" as the second item in the fruits list.
6.
FILL IN THE BLANK QUESTION
1 min • 4 pts
fruits = ["apple", "banana", "cherry"]
Use indexing to print the last item in the list.
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
fruits = {"apple", "banana", "cherry"}
if "apple"........ fruits:
print("Yes, apple is a fruit!")
in
notin
&&
and
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
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Object Oriented Programming
Quiz
•
University
10 questions
Excel (9-րդ դասարան)
Quiz
•
9th Grade - University
15 questions
BASIC C QUIZ
Quiz
•
University
20 questions
What does this icon represent?
Quiz
•
University
20 questions
Introduction type of computer
Quiz
•
University
20 questions
Kuis LPK Fungsi
Quiz
•
University
17 questions
Kiến thức về trang tính
Quiz
•
7th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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