FirstRanker's choice
Code: 13A05806
Time: 3 hours
--- Content provided by FirstRanker.com ---
B.Tech IV Year II Semester (R13) Regular Examinations April 2017
PYTHON PROGRAMMING
(Computer Science and Engineering)
PART - A
--- Content provided by FirstRanker.com ---
(Compulsory Question)
1 Answer the following: (10 X 02 = 20 Marks)
- What are the conventions followed in variable declaration and definitions in python?
- What are the advantages of interactive mode of python programming?
- List out the basic data types of python programming.
- What are the roles of pass keyword?
- Give examples for any two usage of dictionaries data structure.
- What are the types of sequences in python?
- How to represent variable length arguments in python.
- Give an example for fruitful function.
- What is data hiding? Give an example in python.
- What are the standard libraries for GUI programming in python?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B
Max. Marks: 70
(Answer all five units, 5 X 10 = 50 Marks)
--- Content provided by FirstRanker.com ---
UNIT - I
-  (a) Enumerate any twenty keywords in python.
 (b) Give a Brief description about history of python and the need of python.
OR
-  (a) Explain the various input and output methods in python.--- Content provided by FirstRanker.com --- (b) What are the indentation rules that followed in python?
UNIT - II
- Discuss about various operators in python programming. Give code segments of each operator usage.
OR
-  (a) List out the order of expression evaluation from highest to lowest.--- Content provided by FirstRanker.com --- (b) Write a python program for multiplication of two 3 x 3 matrix.
UNIT - III
-  (a) Give any three examples of list comprehensions.
 (b) Explain the various methods of tuples in python.
OR
--- Content provided by FirstRanker.com ---
-  (a) Give any three examples of slicing.
 (b) Explain the various methods of sets in python.
UNIT - IV
-  (a) Write a function called is_prime which takes a single integer argument and returns True if the integer is a prime number and False otherwise. A prime number is a number with only two distinct divisors, 1 and itself. Note: 1 is therefore not a prime number.
 (b) Explain how to represent local and global variables in python.
--- Content provided by FirstRanker.com ---
OR
-  (a) Write a python program to describe error and exception handling.
 (b) Write steps to install packages via pip.
UNIT - V
-  (a) Explain how to override methods in python.--- Content provided by FirstRanker.com --- (b) Describe about a class and constructor methods with an example.
OR
-  (a) Write a short python script to test any three string methods.
 (b) Explain the features of turtle graphics.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTU Anantapur B-Tech 4-2 last 10 year question papers 2010 -2020 -All regulation- All branches- 4th Year 2nd Sem
