ALL BUSINESS PYTHON

Python Quiz (5 Multiple Choice Questions) with Score, Skill Level and Bar Graph

🎯 Difficulty level

Beginner → Lower Intermediate

Tests:

  • Python data types

  • references & mutability

  • default parameters

  • exception handling

  • syntax awareness

After submitting you will see the following:

  • ✅ Score (e.g. 3 / 5)

  • ✅ Skill level (Beginner / Lower Intermediate / Strong Fundamentals)

  • 📊 Bar graph showing correct vs incorrect answers

Python Quiz

Take the test

1) What is the output?

print(type([]) is list)



2) What will this print?

x = [1,2,3]
y = x
y.append(4)
print(x)



3) Which creates a set with one element?




4) What does this output?

def f(a, b=10):
    return a + b

print(f(5))



5) Correct way to handle exceptions?




Views: 3

Comments are closed.

Pin It