0% found this document useful (0 votes)
80 views

PYTHON Data Science Internal

This document is a mid-term exam for a Problem Solving and Python Programming course taken at Satavahana University Nalanda Degree College. It consists of 3 sections - Section A has 10 multiple choice questions worth 1/2 mark each, Section B has 10 fill in the blank questions worth 1/2 mark each, and Section C has 5 short answer questions worth 1 mark each. The total marks for the exam are 20.

Uploaded by

prashanth kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

PYTHON Data Science Internal

This document is a mid-term exam for a Problem Solving and Python Programming course taken at Satavahana University Nalanda Degree College. It consists of 3 sections - Section A has 10 multiple choice questions worth 1/2 mark each, Section B has 10 fill in the blank questions worth 1/2 mark each, and Section C has 5 short answer questions worth 1 mark each. The total marks for the exam are 20.

Uploaded by

prashanth kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SATAVAHANA UNIVERSITY

NALANDA DEGREE COLLEGE (7050), JAGTIAL


B.Sc (Data Science) Final Year Semester – II Mid-Term-OCT-2021 Examination

Subject: Problem Solving and Python Programming

MARKS
Student Name_______________________________________________

H.T.No.________________Group___________Year:________________

Time: 1hr. Max.Marks:20

Signature of the Invigilator


SECTION- A
I. Choose the correct answer 10 X ½ = 5

1. Who developed the Python language? [ ]


a) Zim Den b) Guido van Rossum c) Niene Stom d) Wick van Rossum

2. In which year was the Python language developed? [ ]

1. a) 1995 b) 1972 c) 1981 d) 1989

3. Which one of the following is the correct extension of the Python file? [ ]

a) .py b)python c).p d)None of these

4. This symbol marks the beginning of a comment in Python. [ ]


a) & b) * c) ** d) #
5. This built in function can be used to convert an int value to a float [ ]
a) int_to_float( ) b) float( ) c) convert( ) d) int( )

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( )

7. round(4.576) What will be the output of this function? [ ]

a) 4 b) 5 c) 576 d) 5

8. Which of the following statements will cause an error [ ]


a) x=17 b) 17=x c) x=99999 d) x=’17’

9. What is the output of print str*2 if str=’Hello World!’? [ ]


a) Hello World!Hello World! b) Hello World!*2 c) Hello World! d) None of the above
10. What is the output of the following program : [ ]
def myfunc(a):
    a = a + 2
        a = a * 2
    return a

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

1. Explain Python Functions?

2. What is Data type?

3. What is the difference between list and tuple?

4. What is File and list out the types of files?

5. What is Exception?

V. ASSIGNMENT MARKS: 5

You might also like