PPSP Imp Questions
PPSP Imp Questions
Unit-I
1. List the features of Python Programming language?
2. List and explain few most commonly used built-in data types in python.
3. What are identifiers in python? Discuss the rules to name an identifier.
4. Write Syntax Explain standard input and output functions in python. Illustrate with suitable examples.
5. Explain with example membership and identity operators in Python?
Unit-II
1. Explain the conditional branching statements with example?.
2. Explain the use of loop manipulation statements (break, continue, pass and else) in python with
suitable examples?.
3. How to define and declare a function with example?
4. Define scope of a variable? Explain different scopes used in python program with example.
5. What is recursion? Explain with example?
6. Explain the usage of anonymous function lambda with example?
7. Explain the following types of arguments used in functions:
a) Required arguments
b) Keyword arguments
c) Default arguments
d) Variable-length arguments
8. WAP to calculate the sum of n to m numbers using loops?
9. Write a python code for whether the given number is prime or not?
10. Write a Python code for Factorial of a number using ‘for and while loop’?.
11. Write a python code to print below pattern
1
22
333
4444
55555
12. Write a python code for GCD of two numbers using recursion?
13. Write a python code for Fibonacci series using recursion?
14. WAP a program to sum of series—1/12+1/22+1/32+ ..... +1/n2
Unit-III
Unit-IV
1. Explain about oops concepts in detail?
2. Explain the Operator overloading with an example.
3. List few common Exception types and explain when they occur.
4. Explain about abstract classes with an example program?
5. What is inheritance? Explain types inheritance?
6. Explain in detail about public and private data members in python?
7. Write a program for Multiple inheritance in python?
8. Write small code to illustrate try and except statements in Python.
9. Write a python program that has multiple except blocks.
10. Write a program to access class objects and class members in python.
Unit-V