0% found this document useful (0 votes)
132 views2 pages

Model Exam QB

This document contains a question bank with 35 questions related to algorithms, Python programming concepts like data types, functions, files, exceptions, recursion, classes, and more. The questions are divided into two parts - Part A contains conceptual questions to test understanding of Python concepts while Part B focuses on writing Python programs and explaining concepts in detail with examples. This question bank can be used to prepare for model examinations to assess students' knowledge of problem solving using algorithms and 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 DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views2 pages

Model Exam QB

This document contains a question bank with 35 questions related to algorithms, Python programming concepts like data types, functions, files, exceptions, recursion, classes, and more. The questions are divided into two parts - Part A contains conceptual questions to test understanding of Python concepts while Part B focuses on writing Python programs and explaining concepts in detail with examples. This question bank can be used to prepare for model examinations to assess students' knowledge of problem solving using algorithms and 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 DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

KGISL INSTITUTE OF TECHNOLOGY

DEPARTMENT OF SCIENCE AND HUMANITIES


Problem Solving and Python Programming
Model Examinations Question Bank

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.

10. Write a Python program to multiply two matrices.


11. Discuss the different modes for opening a file and closing a file.
12. Explain in detail about building blocks of an algorithm.
13. What are functions? Explain about the types of functions based on arguments.
14. Explain briefly about various conditional and looping statements with suitable examples.
15. Describe about strings and explain various string methods with syntax and example.
16. Explain in detail about various list methods with examples.
17. Elaborate on operators in Python.
18. Outline the operator precedence of arithmetic operators in Python.
19. Write a Python program to copy contents of one file to another .
20. Describe in detail how exceptions are handled in Python. Give relevant examples.
21. Write a Python program to rename a given file.
22. Explain with an example to while loop, break statement and continue statement in Python.
23. Write a Python program to generate first ‘N’ Fibonacci numbers.
24. Explain in detail about dictionaries and its methods with examples.
25. Explain in detail about tuple and its operations with examples
26. Explain in detail about data types supported y Python language 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

You might also like