Exam Details
Subject | python programming | |
Paper | paper 2 | |
Exam / Course | m.sc. data science | |
Department | ||
Organization | rayalaseema university | |
Position | ||
Exam Date | December, 2017 | |
City, State | andhra pradesh, kurnool |
Question Paper
M.Sc. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2017.
Third Semester
Data Science
Paper II PYTHON PROGRAMMING
2 21432
Time 3 Hours Max. Marks 70
SECTION — A
Answer any FIVE questions. 6 30 Marks)
Each question carries 6 marks.
1. Write about characteristics of scripting languages.
2. Demonstrate the any three expressions in python with suitable examples.
3. Give the differences between tuples and list.
4. How to declare and calling functions in python?
5. Write a Python program that counts the number of occurrences of the character in
the given string.
6. Write about garbage collection in python programming.
7. Illustrate method over riding in python with suitable example.
8. Write a program to catch a Divide by zero exception. Add a finally block too.
SECTION — B
Answer ONE questions from each Unit. 10 40 Marks)
Each question carries 10 marks.
UNIT I
9. Describe the features of python language and compare Python 2.x and Python 3.x.
Or
10. Write about various control structures in python. Write a python program to find
the sum of N natural numbers.
UNIT II
11. What is dictionary in python? Explain the following operations of dictionary:
Creating a dictionary
Accessing values in a dictionary
Updating dictionary
Deleting elements from dictionary.
Or
12. What is lambda function in python? Explain with any one example.
Illustrate the ways of creating the tuple and the tuple assignment.
UNIT III
13. Explain functions in regular expressions with suitable example.
Or
14. How to crate class and object in python? Explain about class variables and Object
variables with suitable example.
UNIT IV
15. What is an exception? How to handle exceptions in python.
Or
16. How to implement different types of inheritance in phthon programming? Explain
in detail.
———————
Third Semester
Data Science
Paper II PYTHON PROGRAMMING
2 21432
Time 3 Hours Max. Marks 70
SECTION — A
Answer any FIVE questions. 6 30 Marks)
Each question carries 6 marks.
1. Write about characteristics of scripting languages.
2. Demonstrate the any three expressions in python with suitable examples.
3. Give the differences between tuples and list.
4. How to declare and calling functions in python?
5. Write a Python program that counts the number of occurrences of the character in
the given string.
6. Write about garbage collection in python programming.
7. Illustrate method over riding in python with suitable example.
8. Write a program to catch a Divide by zero exception. Add a finally block too.
SECTION — B
Answer ONE questions from each Unit. 10 40 Marks)
Each question carries 10 marks.
UNIT I
9. Describe the features of python language and compare Python 2.x and Python 3.x.
Or
10. Write about various control structures in python. Write a python program to find
the sum of N natural numbers.
UNIT II
11. What is dictionary in python? Explain the following operations of dictionary:
Creating a dictionary
Accessing values in a dictionary
Updating dictionary
Deleting elements from dictionary.
Or
12. What is lambda function in python? Explain with any one example.
Illustrate the ways of creating the tuple and the tuple assignment.
UNIT III
13. Explain functions in regular expressions with suitable example.
Or
14. How to crate class and object in python? Explain about class variables and Object
variables with suitable example.
UNIT IV
15. What is an exception? How to handle exceptions in python.
Or
16. How to implement different types of inheritance in phthon programming? Explain
in detail.
———————
Other Question Papers
Subjects
- big data analytics
- cloud computing
- data mining
- data warehousing and mining
- electronics instruments and measurements
- information security
- machine learning for big data
- optimization techniques
- python programming
- r programming
- software engineering