Python – Full Revision Sheet (MCQs + Short Q&A;
+ Long Answers)
MCQs (with Answers)
• 1. Python was created by (b) Guido van Rossum
• 2. Python was first released in: (c) 1991
• 3. Which of the following is NOT a feature of Python? (c) Platform-dependent
• 4. Python is a (b) Interpreted language
• 5. In Python, variable names are (b) Case-sensitive
• 6. IDLE in Python stands for (a) Integrated Development and Learning Environment
• 7. Which one is NOT a data type in Python? (d) Character
• 8. Which symbol is used for assignment in Python? (b) =
• 9. Which mode in Python shows immediate results? (b) Shell (Interactive) mode
• 10. The function used to take input from the user in Python is (c) input()
Short Question & Answers
Q1. Who developed Python and when?
Python was developed by Guido van Rossum and first released in 1991.
Q2. Write any two features of Python.
Easy to learn and use. Platform independent.
Q3. What is the difference between Shell mode and Script mode in Python?
Shell mode executes code immediately, Script mode is used to save and run programs.
Q4. Name any two applications of Python.
Website development, Game development.
Q5. What does IDLE stand for?
Integrated Development and Learning Environment.
Q6. What is a variable in Python?
A variable is a named storage location used to store data in memory.
Q7. What are the basic data types in Python?
Integer (int), Float, String (str).
Q8. What is the use of the print() function?
It is used to display output on the screen.
Q9. Write the rules for naming variables.
Must start with a letter/underscore, can include letters, digits, underscores, case-sensitive.
Q10. What is the use of input() function in Python?
It is used to take values as input from the user.
Long Question & Answers
Q1. Explain the features of Python.
Python has several features: (i) Easy to learn general-purpose language, (ii) Platform independent
– runs on any machine, (iii) Simple syntax like English, (iv) Case-sensitive, (v) Interpreted language
– executes line by line, (vi) Free and open-source for redistribution.
Q2. Explain the different modes of Python.
Python can be used in two modes: (i) Shell Mode – also called Interactive Mode, where commands
are executed line by line immediately. Useful for testing small pieces of code. (ii) Script Mode – also
called File Mode, where a full program is written, saved with .py extension, and executed together.
Useful for large programs.
Q3. What are the components of IDLE in Python?
The main components of IDLE are: (i) Title Bar – shows name of application/file, (ii) Menu Bar –
contains various menus, (iii) File Menu – for file operations, (iv) Edit Menu – cut, copy, paste text,
search and replace, (v) Help Menu – provides Python help, (vi) Status Bar – shows current cursor
position, (vii) Command Prompt – area to type code (>>>), (viii) Printing a Message – using print()
function to display output.
Q4. Explain variables and rules for naming them in Python.
A variable is a named location in memory used to store data. Rules: (i) Must begin with a letter or
underscore, (ii) Can include letters, digits, underscores, (iii) No special symbols allowed, (iv)
Case-sensitive (Age ≠ age), (v) Cannot be a Python keyword, (vi) Should have meaningful names.
Q5. Explain the basic data types in Python.
Python has three main data types: (i) Integer (int) – positive or negative whole numbers, (ii) Float –
real numbers with decimal points, (iii) String (str) – sequence of characters enclosed in quotes.