Question Bank PPS (1)
Question Bank PPS (1)
Questions Bank
Unit I
1) Define algorithm and flow chart. Draw flow chart for the program to find maximum
5) Define flow chart. Discuss its various blocks with suitable example.
6) Write an algorithm & draw flowchart to calculate area of circle & rectangle
7) Write Algorithm & Draw flowchart of given problem, To check if number is prime number or
not.
Unit II
8) List the data type used in python and explain briefly taking suitable example.
9) What is function? Define its syntax. Explain how to create a function in python with
example.
10) Write a function using return statement to check whether number is EVEN or ODD
11) What is function? Explain its significance in programming. Define its syntax.
15) Explain the concept of recursion by writing function to compute the factorial of given number
16) WAP to generate the factorial of any number using recursion function.
17) Write a program for function to print square of numbers in list. eg. numbers= [1,2,3,4,5]
18) Write a program to print Fibonacci series using for loop/ while loop.
Unit IV
21) Write a program to show the different operations on Dictionary
18) Explain the concept of object oriented programming using suitable examples.
19) Write a program to create a dictionary and access the items of dictionary using for loop.
20) Write a program to create a list of five element and apply to update and delete the list.
Unit V
22) Explain various types of exception handling using suitable syntax and example.
23) Briefly define file handling in Python. Write a program to open, write, read and close the python
file.
24) With the help of suitable examples explain different ways in which you can read and write
data in file using python
25) What is exception? Explain exception handling with syntax & suitable examples.