
питон 4
Quiz
•
English
•
Professional Development
•
Medium
кек .
Used 2+ times
FREE Resource
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the not keyword in Python?
Reverses the result of a boolean expression.
Compares two values
Assigns a value to a variable
Ends a loop.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(type([1, 2, 3]))?
<class 'list'>
<class 'tuple'>
<class 'set'>
<class 'dict'>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function can you use to iterate over both keys and values of a dictionary?
items()
keys()
values()
iterate()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? print(10 / 4)
2.5
2
Error
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following represents a valid Python module?
A .py file containing Python code.
A .txt file containing text.
A .exe file containing executable code.
A .csv file containing comma-separated values
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you handle multiple exceptions in a single try block?
Use multiple except clauses
Use a try block for each exception
Write all exceptions on one line separated by semicolons.
Use the finally clause
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will check if a string starts with a specific prefix?
startswith()
endswith()
checkprefix()
beginwith()
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
46 questions
A1 high Final Exam (Units 9-16)
Quiz
•
Professional Development
50 questions
Verbal Ability Quiz-01
Quiz
•
Professional Development
43 questions
26-generate random number + java
Quiz
•
Professional Development
43 questions
New word of week 10+11
Quiz
•
Professional Development
47 questions
Linkers, Modals
Quiz
•
Professional Development
46 questions
ATA 51 - STRUCTURES
Quiz
•
Professional Development
48 questions
B2 Essay Writing
Quiz
•
Professional Development
50 questions
QRVEY B1 - 2
Quiz
•
Professional Development
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