Skip to content
Placement practice

Output Prediction - Python practice questions for placement tests

Practise output prediction - Python with topic-based questions. Preview a sample, then start a short session to check your understanding.

See the question style before signup · Get instant feedback · Continue with focused practice

Try a sample question

Check your answer to see the explanation where one has been published.

Try this question
In Python, str(7) + '1' yields what?

1 sample question · No signup needed

Something unclear? Report this question.

2
In Python these statements run in order: a = [1, 2]; b = [1, 2]; a is b . What is the final value?
3
Python executes the following in sequence: xs = [3, 1, 2]; ys = sorted(xs); xs . What does the last line give?
Start output prediction - Python practice

50 verified questions in this topic.