College Subject Practice · College Year 1
Python Programming practice questions — College Subject Practice · College Year 1 Programming
Practise Python programming with topic-based questions. Preview a sample, then start a short session.
See the question style before signup · Get instant feedback · Continue with focused practice
What you will practise
Decorators
Generators
Context Managers
Advanced Functions
Iterators & Iterables
Try a sample question
Check your answer to see the explanation where one has been published.
Try this question
Given the following code, in what order are decorators applied?
@decorator_a
@decorator_b
@decorator_c
def my_function():
pass1 sample question · No signup needed
2
Which correctly defines a lambda function that adds two numbers?
3
What methods must an object implement to be an iterator?
Start a sample session
50 published questions available for this topic.