Exam Type

Practice Set

Practice questions aggregated across this exam type.

Practice Questions

10 of 150 questions

Jump to concepts →

easy

Q1. Which Python data type is immutable?


Select one answer before revealing.

easy

Q2. Which keyword exits a loop early in Python?


Select one answer before revealing.

easy

Q3. What does the def keyword do in Python?


Select one answer before revealing.

easy

Q4. What is the output?

print(3 / 2)

Select one answer before revealing.

easy

Q5. What is the output?

print(bool([]))

Select one answer before revealing.

easy

Q6. What is the output?

print("yes" if [] else "no")

Select one answer before revealing.

easy

Q7. What is the output?

def f():
    pass
print(f())

Select one answer before revealing.

easy

Q8. What is the output?

print("  hi  ".strip())

Select one answer before revealing.

easy

Q9. What is the output?

print([1, 2, 3] + [4, 5])

Select one answer before revealing.

easy

Q10. What is the output?

print([0] * 3)

Select one answer before revealing.

1/15

Important Concepts

Study chapter-wise concepts before you practice.

View all