Python Objective Test
Python Objective Test
Objective Test
Subject: Introduction to Python Programming Sub code: BCSB205D
1. Graphical Representation of algorithm 6. T= (10, 11, 12, 13, 14)
is called as print (T [-1])
Write the output
a. flow chart
a. 10 b. 13 c. 11 d. 14
b. flow diagram
c. flow point 7. What is a dictionary in programming,
specifically in Python?
d. None of the above a) A collection of ordered data.
2. ------- is an integer data type in python b) A collection of unique elements.
c) A collection of key-value pairs.
a. c=FALSE b. c=”bec” d) A collection of ordered elements.
c. c=10.5 d. c=10 8. What does the string method .join () do in
3. Loop statements supported in python Python?
are a. splits a string into a list
b. Concatenates a list of strings into one
a. for and do while
string
b. while and do while
c. Reverse a string
c. for and while
d. None
d. All of the mentioned
5. L=[1,2,3,4]
print(len(L)) 10. --------module is designed for common
Write the output pathname manipulation and interaction
with the operating system's file system.
a. 5 b. 6
c. 4 d. 7 a. os.path b.math
c. os d. none of above
Marks Obtained: