UNIT 1
2 marks
1. Define an identifier.
2. Name any three data type conversion functions.
3. What is an operand.
4. Explain about break, continue & pass statements.
5. What is the difference between while loop and do – while loop?.
Part B
1. Describe the data type in python with examples.
2. What are the types of operators? Explain any one operator in detail with a program.
3. Explain loop control statements and explain any one statements in detail with a program.
4. Explain the various looping constructs by giving example.
5. Explain the towers of Hanoi with a neat Flow chart, pseudocode and program it.
UNIT II
Part A
1. Define user defined and built in function with examples.
2. Write the different types of modes used in opening a file in python.
3. What is fruitful function?
4. Explain about string and string slice.
5. What is immutable?
Part B
1. Describe in detail about function parameters with its types by giving example.
2. Explain in detail about recursion with an example program.
3. Write a python program to convert the given string from lowercase characters to
uppercase and uppercase to lowercase.
4. Explain any 5 matching patterns with example program.
5. Write a python program to find whether the given string is symmetrical or palindrome.
UNIT III
Part A
1. Write any five list methods.
2. What do you mean by list comprehension?
3. Write about membership operator
4. What are the different operations performed on a dictionary?
5. Explain all the set methods with an example.
Part B
1. Describe in detail about the tuples with its relevant methods.
2. Explain list as arrays. How to access, update and delete an element in a list.
3. Explain all the list methods with an example?
4. Compare List, Tuple and Dictionaries with its salient features.
5. Explain set operations with an example program.
UNIT IV
Part A
1. What is a text file and binary file?
2. Name the different operations on a file.
3. Write the difference between tell () and seek ().
4. What is an exception?
5. What is Exception chaining?
Part B
1. Explain in detail the various operations performed in a file by giving examples.
2. How do you open a web page from a python program with an example?
3. Describe about Handling Exceptions in detail with examples?
4. Explain about user- Defined Exceptions with example program.
5. Explain about Clean up actions with example program.
UNIT V
Part A
1. Write down a python code for multiplying two Numpy arrays.
2. Explain the purpose of the groupby function in pandas.
[Link] is Matlpotlib and why is it commonly used in data visualization?
4. List down the three geometry manager classes available in Tkinter.
5. How do you create a simple window using Tkinter?
Part B
1. Discuss about various Packages available in python with simple example.
2. Illustrate with an example of a mathematical operation performed on two Numpy arrays
3. Demonstrate about various Widgets available in Tkinter with an example.
4. Develop a python code for creating a GUI Marksheet using TKinter.
5. Develop a python program for creating a calendar using TKinter.