PYTHON Data Science Internal
PYTHON Data Science Internal
MARKS
Student Name_______________________________________________
H.T.No.________________Group___________Year:________________
3. Which one of the following is the correct extension of the Python file? [ ]
6. This built-in function can be used to read a number that has been typed on the key-board. [ ]
a) input( ) b) get_num( ) c) read_number( ) d) keyboard( )
a) 4 b) 5 c) 576 d) 5
print myfunc(2)
a) 8 b)16 c)Indentation Error d) Runtime Error
SECTION-B
II. Fill in the blanks with suitable answer. 10 X ½ = 5
1. What is the output of print (list[1:3]) if list =[‘abcd’,786,2.23,’NDC’,70.2]
___________________________ ______________________________
2. What is the output of the following code_________________________
tuple=(2,3,4)
print(tuple)
3. Variable name can start with an ____________________________________________________
4. The purpose of using a loop is to ___________________________________________________
5. What is the file extension of python program file ______________________________________
6. What are control statements _______________________________________________________
7. The _________________ function can be used to read a value from keyword. However, by using
This statement you need to supply the value in single quotes.
8. How will you remove last object from a list __________________________________
9. Is python case- sensitive language___________________________________________
10. Suppose list1 is [2, 33, 222, 14, 25], what is list1 [-1] ___________________________
SECTION-C
III. Answer all the questions. 5X1=5
5. What is Exception?
V. ASSIGNMENT MARKS: 5