0% found this document useful (0 votes)
26 views4 pages

PSPP

Notes...

Uploaded by

vpmusic0708
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views4 pages

PSPP

Notes...

Uploaded by

vpmusic0708
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Demonstrate the various operations and methods that can be performed on a list with a suitable example.

Demonstrate the various operations that can be performed on tuples.


What is a dictionary in python? Demonstrate the operations for dynamically manipulating dictionaries.

Explain the various dictionary methods with suitable example.


Explain the file reading and writing operations using format operator.
Describe how exceptions are handled in python with necessary example.
What are modules in python? How will you import them? Explain the concept by creating and importing a
module.
How will you create a package and import it? Explain with an example.
Illustrate with examples and concept about different types of operators
Apply different types of operators to develop a calculator application.
i).Outline the operator precedence of arithmetic operators in Python.
ii).Evaluate the following expression 5*(7//2)+3**3
i).Write a python program to display the distance between two points
ii).Write a python program to circulate the values of n variables

Explain in detail the Conditional statements with suitable examples


Illustrate the flow chart of the conditional loop and unconditional loop statements with examples.

Demonstrate various function prototypes with suitable examples


Illustrate the searching methods and its types with suitable examples.
Unit 4&5

Unit 2&3

Unit 1&2

Explain the building blocks of algorithm and write an algorithm to calculate the sum of even
numbers upto n.
Outline the Towers of Hanoi problem. Suggest a solution to the Towers of Hanoi problem
with relevant diagrams.
Explain the Guessing an Integer problem and write the algorithm, flowchart and pseudocode.
Explain the types of control flow with suitable algorithms.
Explain in detail the various types of data type in Python with example.
Explain the interactive and interpreter mode of python. And develop a simple python
program using ‘float’ data type.

Explain in detail the following with suitable example.


i. Variables
ii. Expression
What is the Precedence of Operator?
List down the rules used for Precedence of operator.
Give the operators from higher precedence to lower precedence.
Represent the operators and operands in Sum = val1 + val2
Illustrate the use of * and + operator in string with an example.
Illustrate a python program to exchange the values of two variables
Define recursion.
What is a conditional statement? Give its types.
Define Nested if with its syntax.
Write a program to Check eligibility of getting license (Min age :18)
Write a program to check minimum of two numbers.
Write a program to check, the input character is Upper/Lower case.
Illustrate the range() function with an example.
Describe the break function with an example.
Demonstrate continue statement with an example.
What is the purpose of pass statement?
Define Void function
Define fruitful function
Compare Linear Search and Binary Search
Differentiate the calling function and called function.
Illustrate with an example the Parameters and Arguments.
Interpret the output of the following:
i=1
while True:
if i%2==0:
break
print(i)
i+=2
Differentiate iteration and recursion.
Demonstrate String immutability with an example.
What is list mutability in Python? Give an example.
How to use the negative indexing of a list?
How to slice a list in Python.
How to assign a value to a tuple in python?
Can function return tuple?
Define cloning in list?
What is the purpose of dictionary in python ?
How python's dictionary stores data?
Which function returns the first key mapping value from the dictionary.
Differentiate lists and dictionary.
Solve [0]*4 and [1,2,3]*3.
Let list=[‘a’,’b’,’c’,’d’,’e’,’f’]. Find list[1:3], list[:4].
List any four file operations.
How does try and execute work?
How do you delete a file using pyhon programming?
How to handle the non existence of the file through exception?
Why do you need exceptions and exception handling mechanism?
How to use command line arguments in python?
Find the syntax error in the code given: While True print(‘Hello world’)
Write a python program that writes “Hello world” into a file.
Illustrate Module with an example.
Write a method to rename and delete files.
Write a python program that counts the number of words in a file.
Write a python script to display the current date and time.
Study all unit’s illustrative problems
Unit 1
1. Find minimum in a list
2. Insert a card in a list of sorted cards
3. Guess an integer in a range
4. Towers of Hanoi

Unit 2
1. Exchange the value of two variables
2. Circulate the value of n variables
3. Distance between two points

Unit 3
1. Square root
2. GCD
3. Exponentiation
4. Sum an array of n numbers
5. Linear Search
6. Binary Search

Unit 4
1. Merge Sort
2. Insertion Sort
3. Selection Sort
4. Histogram
5. Student Mark Statement
6. Retail Bill Preparation

Unit 5
1. Word Count
2. Copy File
3. Voter’s age validation
4. Marks range validation

You might also like