Model Exam QB
Model Exam QB
PART A
1. Define Algorithm.
2. What is Recursion?
3. What is pickling in Python.
4. What is an exception? Give an example.
5. Define function composition.
6. Define Algorithm. State some of the properties of the good algorithm.
7. State the difference between Recursion and Iteration
8. Define File.
9. What is exception? Give an example.
10. Write a python program to find factorial of a given number
11. Compare mutable objects with immutable objects. Give examples
12. What is anonymous function in Python?
13. Classify global variable with a local variable.
14. What is a list? How to slice a list in Python?
15. What is tuple packing and unpacking?
16. Differentiate Arguments and Parameters.
17. List out the various data types available in python.
18. Mention few string Methods.
19. What is list comprehension? Give an example.
20. Define dictionary with example.
PART B
1. Outline the Towers of Hanoi problem. Suggest a Solution to the Towers of Hanoi problem with
relevant diagrams.
2. Explain the various symbols used in flowchart and draw a Flowchart to determine the square root of
number using Newton’s Method.
3. Give pseudo code and draw flowchart to accept three distinct numbers, find the greatest and print
the result
4. Explain in detail about various data types supported by Python language with examples.
5. Write a Python program to find whether a number is prime or not.
6. Explain briefly about various operators available in python
7. What are the steps involved in solving a problem using an algorithm? Discuss each step
briefly.
8. Write a Python program to store ‘n’ numbers in a list and sort the list using selection sort.
9. Explain in detail about tuples and its operations with examples.
27. Write a Python program to find whether the given year is leap or not.
28. Explain in detail about dictionaries and its methods with examples for each method.
29. Discuss the different modes for opening a file and closing a File.
30. Give the pseudo code and flowchart for inserting a card in a list of sorted cards
31. Give the pseudo code and flowchart for finding minimum of a list.
32. Explain in detail about conditional statements in Python with necessary examples
33. Write a Python program to perform binary search.
34. Write a Python program to copy the contents of one file to another File.
35. Describe in detail how exceptions are handled in Python. Give relevant examples.
36. Write a python program to rename a given file and display it’s content in the Console