0% found this document useful (0 votes)
10 views3 pages

PPSP Imp Questions

The document outlines important questions and coding exercises related to Python programming, organized into five units covering topics such as data types, control structures, functions, object-oriented programming, and file handling. Each unit includes theoretical questions and practical coding tasks aimed at reinforcing the concepts. The content is designed for learners to develop a comprehensive understanding of Python programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

PPSP Imp Questions

The document outlines important questions and coding exercises related to Python programming, organized into five units covering topics such as data types, control structures, functions, object-oriented programming, and file handling. Each unit includes theoretical questions and practical coding tasks aimed at reinforcing the concepts. The content is designed for learners to develop a comprehensive understanding of Python programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PPSP Important 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?

6. Define String. Explain the various string operations with example.


7. What is Type conversion? Explain in detail.
8. Write a python code for slice operation on strings.
9. Write a python code for demonstrates the use of relational operators.
10. Write a python code to enter a number and display its hex and octal equivalent and its square root.
11. Write a python code for demonstrates the use of Bitwise operators.
12. Write a python code to read three numbers and calculate their sum and average.

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

1. Define List. Explain the operations performed on List.


2. Explain how for loop can handle different data structures.(List & tuple )
3. Create a tuple and explain all the operations and methods that can be performed on a tuple with
suitable example
4. Explain the following set operations with example?
a) update ()
b) add ()
c) remove ()
d) pop ()
e) copy ()
5. Explain the different ways of dictionary creation with examples?
6. Write the difference between two set functions – discard() and remove()?
7. Explain in detail about advanced list processing. (List Comprehension)
8. Explain string operations in detail with examples?
9. Write a python code for following string methods
i. Count
ii. Split
iii. Replace
iv. Upper
v. Lower
vi. Find
10. Write a python code for search function in strings?
11. Write a python code to find the sum and mean of elements in a list?
12. Write a program to create a list of 1-10 numbers and delete all the even numbers from the list and
print the final list

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

1. What are packages? Give an example of package creation in Python.


2. What is File? Explain about reading and writing files using modes?
3. Discuss the following methods associated with the file object
a) read() b) readline() c) readlines() d) tell() e) seek() f) write()
4. Demonstrate SciPy and MatplotLib libraries with examples?
5. What is Numpy? What are features of Numpy?
6. What is Pandas? Write the Features and Applications of Pandas.
7. Write a python program to write a file using writelines() method.
8. Write a python program to copy the contents of one file to another file.
9. Write a python program to display the contents of a file.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy