python-examples

MCQS

# Getting Started with Python - MCQS

  1. Which of the following is the correct extension of the Python file?

a. .python

b. .pl

c. .p

d. .py

Python Data Types - MCQs

  1. What will be the output of the following code?

if 5 > 2: print(“5 is greater than 2”)

a. Syntax Error

b. 5 is greater than 2