UNIT -5 Class – 9th Part – B
Chapter – Python
Objective Type Questions
A. Select the correct option.
1. What is the full form of IDLE?
a. Integrated Development and Learning Environment b. Interactive Development and Learning Environment
c. Interpreted Development and Learning Environment d. Independent Development and Learning Environment
2. Which one of the following is an extension of the Python file?
a..py b. .python
e. .p d. .Python
3. Which mode of Python enables you to write multiple lines of code?
a. Interactive mode c. Module mode
b. Script mode d. None of these
4. Which of the following is a valid variable name?
a. age_entry b. 18_age
c. age-entry d. @age
5. Which of the following cannot be a variable?
a. int b. into
c. sum d. on
6. Which of the following is a floor division operator?
a. / b.%
c. // d. ///
7. To give a tab space while printing the statement, you can use the
a. Tab key b. Spacebar key
c. "\t" d."/t"
8. The input() function returns ____value.
a. int b. string
c. float d. text
9. Which of the following function is used to convert an integer value to a floating-point value?
a. int() b. float()
c. str() d. input()
10. What will be the output of the following code?
x=y=5
print(x, y)
a. 55 c. 5
b. 10 d. None of these
11. Which of the following is not a Python data type?
a. Tuple b. List
c. Float d. Decimal
12. Which of the following is a mutable data type in Python?
a. int b. float
c. tuple d. list
13. What will be the output of the following statement?
print("Python" 2, "Language")
a. PythonPythonLanguage b. PythonPython Language
c. Python Python Language d. Python 2 Language
14. Which operator returns a remainder when one number is divided by another number?
a. Division b. Modulus
c. Exponentiation d. Floor Division
, 15. What indicates the beginning of a block of statements?
a. Indentation b. Comments
c. Loops d. Statements
16. Which of the following is a valid Python if statement?
a. if (a >= 2) b. if a>-2:
c. if (a => 22) d. if a>=22
17. Which of following is not a decision-making statement?
a. if-elif b. if
c. if-else d. for
18. What will be the output of the following code?
for i in range(55,50,-2):
print(1, end="")
a. 54 53 52 51 b. 55 54 53 52 51 50
c. 55 53 51 d. 51 53 55
19. Which data type should be used to take the input as: 12.4?
a. int c. str
b. float d. list
20. Which keyword is used to add an alternative condition to an if statement?
a. alter c. break
b. else d. elif
21. Which of the following will create a list?
a. list1 [6.5, 5, 7, 1] b. list1=[]
c. list1=['Jan', 'Feb', 'Mar'] d. All of these
22. What will be the output of the following code?
List1-[10, 20, 30, 40, 50, 60]
List1.reverse()
print(List1)
a. [60, 50, 40, 30, 20, 10] b. [50, 30, 50, 40, 20, 10]
c. [10, 20, 30, 40, 50, 60] d. [10, 20, 30]
23. Which of the following is a built-in function in Python that creates a sequence of numbers?
a. range() b. sequence()
c. sort() d. random()
24. Which of the following removes the element at the given index from the list and returns the
removed item?
a. len() b. count()
c. list() d. pop()
25. Which function returns the index of the given element in the list?
a. index() b. count()
c. sort() d. int()
B. Fill in the blanks.
1. A/An Algorithm consists of a set of instructions that are used for solving a problem.
2. A Flowchart is a pictorial representation of an algorithm.
3. You can write codes in Python using its Interactive and Script modes.
4. A Variable is a named memory location that stores data.
5. Typecasting is the process of converting one data type into another.
6. Comments are added to a program to provide explanatory information about the program.
7. In a flowchart, the Decision box indicates a condition that returns either true or false.
8. A line of code that you write to carry out a task is called a Statement.
9. Multi-line comment is written using triple quotes (" ").
10. Keywords are the reserved words that express a special meaning to the Python interpreter.
Chapter – Python
Objective Type Questions
A. Select the correct option.
1. What is the full form of IDLE?
a. Integrated Development and Learning Environment b. Interactive Development and Learning Environment
c. Interpreted Development and Learning Environment d. Independent Development and Learning Environment
2. Which one of the following is an extension of the Python file?
a..py b. .python
e. .p d. .Python
3. Which mode of Python enables you to write multiple lines of code?
a. Interactive mode c. Module mode
b. Script mode d. None of these
4. Which of the following is a valid variable name?
a. age_entry b. 18_age
c. age-entry d. @age
5. Which of the following cannot be a variable?
a. int b. into
c. sum d. on
6. Which of the following is a floor division operator?
a. / b.%
c. // d. ///
7. To give a tab space while printing the statement, you can use the
a. Tab key b. Spacebar key
c. "\t" d."/t"
8. The input() function returns ____value.
a. int b. string
c. float d. text
9. Which of the following function is used to convert an integer value to a floating-point value?
a. int() b. float()
c. str() d. input()
10. What will be the output of the following code?
x=y=5
print(x, y)
a. 55 c. 5
b. 10 d. None of these
11. Which of the following is not a Python data type?
a. Tuple b. List
c. Float d. Decimal
12. Which of the following is a mutable data type in Python?
a. int b. float
c. tuple d. list
13. What will be the output of the following statement?
print("Python" 2, "Language")
a. PythonPythonLanguage b. PythonPython Language
c. Python Python Language d. Python 2 Language
14. Which operator returns a remainder when one number is divided by another number?
a. Division b. Modulus
c. Exponentiation d. Floor Division
, 15. What indicates the beginning of a block of statements?
a. Indentation b. Comments
c. Loops d. Statements
16. Which of the following is a valid Python if statement?
a. if (a >= 2) b. if a>-2:
c. if (a => 22) d. if a>=22
17. Which of following is not a decision-making statement?
a. if-elif b. if
c. if-else d. for
18. What will be the output of the following code?
for i in range(55,50,-2):
print(1, end="")
a. 54 53 52 51 b. 55 54 53 52 51 50
c. 55 53 51 d. 51 53 55
19. Which data type should be used to take the input as: 12.4?
a. int c. str
b. float d. list
20. Which keyword is used to add an alternative condition to an if statement?
a. alter c. break
b. else d. elif
21. Which of the following will create a list?
a. list1 [6.5, 5, 7, 1] b. list1=[]
c. list1=['Jan', 'Feb', 'Mar'] d. All of these
22. What will be the output of the following code?
List1-[10, 20, 30, 40, 50, 60]
List1.reverse()
print(List1)
a. [60, 50, 40, 30, 20, 10] b. [50, 30, 50, 40, 20, 10]
c. [10, 20, 30, 40, 50, 60] d. [10, 20, 30]
23. Which of the following is a built-in function in Python that creates a sequence of numbers?
a. range() b. sequence()
c. sort() d. random()
24. Which of the following removes the element at the given index from the list and returns the
removed item?
a. len() b. count()
c. list() d. pop()
25. Which function returns the index of the given element in the list?
a. index() b. count()
c. sort() d. int()
B. Fill in the blanks.
1. A/An Algorithm consists of a set of instructions that are used for solving a problem.
2. A Flowchart is a pictorial representation of an algorithm.
3. You can write codes in Python using its Interactive and Script modes.
4. A Variable is a named memory location that stores data.
5. Typecasting is the process of converting one data type into another.
6. Comments are added to a program to provide explanatory information about the program.
7. In a flowchart, the Decision box indicates a condition that returns either true or false.
8. A line of code that you write to carry out a task is called a Statement.
9. Multi-line comment is written using triple quotes (" ").
10. Keywords are the reserved words that express a special meaning to the Python interpreter.