iGET

Python Programming - MCQ Practice Questions

Core Python MCQs — syntax, data types, OOP, libraries for placements & IT exams.

119 questions | 100% Free

Q.1Easy

What is the correct way to create a variable in Python?

Q.2Easy

Which of the following is NOT a valid Python identifier?

Q.3Easy

What will be the output of: print(type(5.0))?

Q.4Easy

Which keyword is used to create a function in Python?

Q.5Easy

What will be the output of: len('Python')?

Q.6Easy

Which statement about Python comments is correct?

Q.7Easy

What will be the output of: print(type())?

Q.8Easy

Which of the following keywords is used to create a function in Python?

Q.9Easy

What will be the output of: print("Python"[2:5])?

Q.10Easy

What is the output of: print(10 // 3)?

Q.11Easy

Which of the following is an immutable data type in Python?

Q.12Easy

What will be the output of: len('hello world')?

Q.13Easy

Which of the following will correctly concatenate two strings 'Hello' and 'World'?

Q.14Easy

What is the correct way to create a dictionary in Python?

Q.15Easy

Which of the following statements about Python tuples is correct?

Q.16Easy

What will be the output of: x = 5; y = 10; print(x == y)

Q.17Easy

What does len() function return when applied to a string?

Q.18Easy

What will be the output of: print(type(3.14))

Q.19Easy

In Python, which of the following is an immutable data type?

Q.20Easy

What will be the result of executing: print(type(5.0))?