π§©QuizCluster
Free practice quiz
Python Core & Data Quiz Questions
A sample of the 10 questions below β instant scoring and an explanation for every answer. No sign-in required to play.
Question 1
What does the `async def` syntax define in Python?
AA decorator
BA generator
CA lambda
DA coroutine
Question 2
What does the `yield` keyword do inside a function?
AImports a module
BPauses the function and returns a value, resuming later
CRaises an exception
DEnds the function immediately
Question 3
What construct is used to catch exceptions in Python?
Aif/else
Bswitch/case
Ccatch/throw
Dtry/except
β Scroll down to answer all 10 and see your score.
Preparing your quizβ¦