Class XI Python Worksheet – Chapter 2:
Getting Started with Python
1. Fill in the blanks
(a) ______ are the set of instructions given to a computer to perform a particular task.
(b) Python was developed by ______.
(c) Python is called a/an ______.
(d) Python is a/an ______ language in terms of its syntax.
(e) In Python, a syntax error is detected by the ______.
(f) Python is a/an ______ independent language.
(g) To start Python from the command prompt, use the ______.
(h) Python programs are saved using the ______ extension.
(i) Python programming can be done in ______ and ______ modes.
(j) Python is a dynamically-typed language.
(k) The shortcut key to run Python script is ______.
2. True or False
(i) Interactive mode does not save the commands entered by you in the form of a program.
(ii) Alt+R is used to repeat the last typed command in Python shell.
(iii) Print and print are same in Python.
(iv) The `sep` argument is used with `print()` method.
(v) Python is a compiled high-level language.
(vi) Python is a cross-platform language.
(vii) Python is an interpreted language.
(viii) Python is a free, open-source and portable language.
(ix) Python Editor refers to Script mode in Python.
3. Multiple Choice Questions (MCQs)
Python was developed by:
(i) Charles Babbage (ii) Guido van Rossum (iii) Tim Berners Lee (iv) Robert E. Kahn
Which of the following is syntactically correct text?
(i) "This is great!" (ii) 'she shouted 'HELLO' loudly' (iii) "Goodbye' (iv) "This "course"
is good"
Python language is:
(i) Free (ii) Open Source (iii) Free and Open Source (iv) Proprietary
Identify the correct print() statement:
(i) print(Hello) (ii) print('Hello") (iii) print("Hello') (iv) print("Hello")
Shortcut key combination for exiting Python shell:
(i) F5 (ii) Alt+F1 (iii) Ctrl+E (iv) Ctrl+Q
Extension for a Python file is given as:
(i) .pt (ii) .pwy (iii) .py or .pyw (iv) .yppy
Python is a/an:
(i) Compiled (ii) Interpreted (iii) Compiled & Interpreted (iv) None of these
The interactive interpreter of Python is termed as:
(i) Python shell (ii) Python Script mode (iii) Python Editor mode (iv) Python command
line
Single-line comments in Python begin with:
(i) % (ii) " (iii) ' (iv) #
Python is a case-sensitive language. This means:
(i) Capital and small letters are same (ii) Python doesn't care about the case (iii) Python
treats capital and small letters as different (iv) Python auto-capitalizes
Interactive mode of Python gives:
(i) Delayed result (ii) Instant result (iii) Compiled result (iv) No result
4. Short Answer Questions
1. Why is Python called an interpreted language?
2. Who developed Python and when?
3. What is the full form of IDLE?
4. Why is Python considered easy to learn?
5. Mention one feature of Python’s standard library.
6. Is Python compiled or interpreted?
7. What do you understand by Python being open-source?
8. List some distinguishable features of Python.
9. How is Python different from other languages?
1. Fill in the blanks
(a) Programs are the set of instructions given to a computer to perform a particular task.
(b) Python was developed by Guido van Rossum.
(c) Python is called a/an interpreted language.
(d) Python is a/an simple language in terms of its syntax.
(e) In Python, a syntax error is detected by the interpreter.
(f) Python is a/an platform independent language.
(g) To start Python from the command prompt, use the python.
(h) Python programs are saved using the .py extension.
(i) Python programming can be done in interactive and script modes.
(j) Python is a dynamically-typed language. ✅
(k) The shortcut key to run Python script is F5 in IDLE.
2. True or False
(i) ✅ True — Interactive mode does not save the commands.
(ii) ❌ False — Alt+R is not standard for repeating commands.
(iii) ❌ False — Python is case-sensitive, so Print ≠ print.
(iv) ✅ True — sep is an argument in print().
(v) ❌ False — Python is an interpreted language.
(vi) ✅ True — Python runs on multiple platforms.
(vii) ✅ True — Python is interpreted.
(viii) ✅ True — Python is free, open-source and portable.
(ix) ✅ True — Script mode is often referred to as the Python Editor.
3. Multiple Choice Questions (MCQs)
Python was developed by: (ii) Guido van Rossum
Syntactically correct text: (i) "This is great!"
Python language is: (iii) Free and Open Source
Correct print() statement: (iv) print("Hello")
Shortcut key to exit Python shell: (iv) Ctrl+Q
Extension for Python file: (iii) .py or .pyw
Python is a/an: (ii) Interpreted
Interactive interpreter of Python is called: (i) Python shell
Single-line comments begin with: (iv) #
Python is case-sensitive: (iii) Treats capital and small letters differently
Interactive mode gives: (ii) Instant result
4. Short Answer Questions
1. Why is Python called an interpreted language?
Because Python code is executed line by line by the interpreter at runtime.
2. Who developed Python and when?
Guido van Rossum developed Python in 1991.
3. What is the full form of IDLE?
IDLE stands for Integrated Development and Learning Environment.
4. Why is Python considered easy to learn?
Python has simple syntax similar to English and uses indentation instead of braces.
5. Mention one feature of Python’s standard library.
It provides a rich set of modules and functions for various tasks like math, string handling,
etc.
6. Is Python compiled or interpreted?
Python is an interpreted language.
7. What do you understand by Python being open-source?
It means Python’s source code is freely available and can be modified and redistributed.
8. List some distinguishable features of Python.
Interpreted and interactive
Simple syntax
Dynamically typed
Portable and open-source
Large standard library
9. How is Python different from other languages?
Python uses indentation, is dynamically typed, has less complex syntax, and supports
multiple paradigms.