0% found this document useful (0 votes)
18 views2 pages

Python Class11 Questions

Uploaded by

studytimeakash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Python Class11 Questions

Uploaded by

studytimeakash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Class 11 - Getting Started & Fundamentals

10 Multiple Choice Questions (MCQs)


Q1. Which of the following is the correct extension of Python files?
a) .p b) .py c) .python d) .pt
Answer: b) .py
Q2. Python is a _______ language?
a) Compiled b) Interpreted c) Machine-level d) Assembly
Answer: b) Interpreted
Q3. Which function is used to display output in Python?
a) show() b) display() c) print() d) output()
Answer: c) print()
Q4. What will be the output of print(3 + 2 * 2)?
a) 10 b) 7 c) 8 d) 12
Answer: b) 7
Q5. In Python, '#' symbol is used for:
a) Multiplication b) Comment c) Division d) None
Answer: b) Comment
Q6. Which of these is not a keyword in Python?
a) while b) for c) if d) loop
Answer: d) loop
Q7. Which operator is used for exponentiation (power) in Python?
a) ^ b) ** c) pow d) //
Answer: b) **
Q8. The default data type of input() function is:
a) int b) str c) float d) bool
Answer: b) str
Q9. What will be the output of print(type(10/2))?
a) int b) float c) str d) bool
Answer: b) float
Q10. Which of the following is a valid variable name in Python?
a) 2value b) my-name c) _value d) class
Answer: c) _value

10 Question–Answer Type
Q1. What is Python?
Answer: Python is a high-level, interpreted, object-oriented programming language known for its
simplicity and readability.
Q2. Who developed Python and in which year?
Answer: Python was developed by Guido van Rossum in 1991.
Q3. What are the main features of Python?
Answer: - Easy to learn and read
- Interpreted language
- Platform-independent
- Supports object-oriented programming
- Large standard library
Q4. What is the difference between '=' and '==' in Python?
Answer: '=' is an assignment operator while '==' is a comparison operator.
Q5. Write the output of: print('Hello' * 3)
Answer: Output: HelloHelloHello
Q6. What is a variable in Python?
Answer: A variable is a named memory location used to store data, whose value can change
during program execution.
Q7. Write a Python code to find the average of two numbers.
Answer:
a = int(input('Enter first number: '))
b = int(input('Enter second number: '))
avg = (a + b) / 2
print('Average =', avg)
Q8. What is indentation in Python?
Answer: Indentation means the use of spaces at the beginning of a line to define a block of code.
Q9. Differentiate between integer division '//' and normal division '/'?
Answer: '/' gives float result (5/2 = 2.5), '//' gives floor integer result (5//2 = 2).
Q10. What is the purpose of the input() function?
Answer: The input() function is used to take input from the user in the form of a string.

You might also like