Artificial Intelligence
Worksheet-3
Ch-Python Programming
Class -IX
1. Who developed Python Programming Language?
a. Wick van Rossum
b. Rasmus Lerdorf
c. Guido van Rossum
d. Niene Stom
2. Python supports which types of programming?
a. object-oriented programming
b. structured programming
c. functional programming
d. All of the mentioned
3. When it comes to identifiers, is Python case sensitive?
a. No
b. Yes
c. Machine dependent
d. None of the mentioned
4. Which of the following is the valid Python file extension?
a. .python
b. .pl
c. .py
d. .p
5. All keywords in Python are in _________.
a. Capitalized
b. lower case
c. UPPER CASE
d. None of the mentioned
6. In Python, which of the following characters is used to create single-line
comments?
a. //
b. #
c. !
d. /*
7. Which of the following statements about variable names in Python is correct?
a. Underscore and ampersand are the only two special characters allowed
b. Unlimited length
c. All private members must have leading and trailing underscores
d. None of the mentioned
8. What is the maximum length of an identifier that can be used?
a. 16
b. 32
c. 64
d. None of these above
9. When was the Python programming language created?
a. 1995
b. 1972
c. 1981
d. 1989
10. Why is Python such a widely used programming language?
a. Easy to learn
b. Portability and compatibility
c. A Broad Standard Library
d. All of the above
11. IDLE stands for ____________.
a. Integrated Development and Learning Environment
b. Internal Develop and Learning Environment
c. Inside Development and Learning Environment
d. None of the above
12. What are the two methods for using a Python shell?
a. Interaction Mode, Sub Mode
b. Interactive Mode, Script Mode
c. Shell Mode, Python Mode
d. None of the above
13. A _________ is a piece of text that doesn’t impact the outcome of a programme;
it’s just a way to tell someone what you’ve done in a programme or what’s going on
in a block of code.
a. Statement
b. Comments
c. Nodes
d. None of the above
14. _________ are the reserved words in Python used by the Python interpreter to
recognize the structure of the program.
a. Keywords
b. Identifiers
c. Comments
d. None of the above
15. An ____________ is a name given to entities like class, functions, variables, etc.
a. Keywords
b. Identifiers
c. Comments
d. None of the above
Class IX – Python Programming Answer Key
1. c
2. d
3. b
4. c
5. b
6. b
7. b
8. d
9. d
10. d
11. a
12. b
13. b
14. a
15. b