Quiz

Python Basics Quiz

  1. 01.

    Which operator is used for exponentiation?

  2. 02.

    What is the correct file extension for Python files?

  3. 03.

    What is the output of print(0.1 + 0.2 == 0.3)?

  4. 04.

    What is the output of 'apple'.upper()?

  5. 05.

    Which function is used to get a number from the user?

  6. 06.

    What does the 'pass' statement do?

  7. 07.

    Which collection is unordered and unindexed?

  8. 08.

    What is the output of print(set([1, 2, 2, 3]))?

  9. 09.

    What is an empty set in Python?

  10. 10.

    Which function returns a random integer?