1. Problem Solving Python Programming
Question Paper
PART A
1. Define Algorithmwithexample
2. Define Program
3. Define Flowchart
4. Distinguishbetweenalgorithmandprogram.
5. Write an algorithmtoaccept twonumbers, compute the sumand printthe result.
6. Write an algorithmtofindthe minimumnumberinagivenlistof numbers.
7. Define recursionwithanexample.
8. Pseudocode forconvertingFahrenheittocentigrade.
9. What isa module?Give example.
10. What ismeantby Expressions?Give examples.
11. Write a program to accept twonumbers,multiplythemandprintthe result?
12. Write a program to accept twonumbers,findthe greatestandprintthe result?
13. What are keywords?Give examples.
PART B
1. Discuss about the buildingblocksof algorithm
2. . Identifythe simplestrategiesfordevelopinganalgorithm WhatismeantbyFlowchart?Explain
aboutthe symbolsandrulesfordrawingflowchart.
3.Draw a flowchart to accept three distinctnumbers,findthe greatestandprintthe result.
4. 100What ismeantby Flowchart?Explainaboutthe symbolsandrulesfordrawingflowchart
5. Outline the Towersof Hanoi problem.Suggestasolution tothe Towersof Hanoi problemwith
relevantdiagrams
6. Draw a flowchartto findthe sum of the series1+2+3+4+….+
7. Write an algorithmtoinserta card intoa listof sortedcards.
8. Summarise the precedence of mathematical operatorsinpython.
9.Write a pythonprogramto swapthe valuesof two variables.
10.Explainindetail aboutalgorithmicproblemsolving
11.Pseudocode tofindaverage of fournumbers.
12.Explainindetail aboutData types& Variables.
13.Write a pythonprogram usingfunctiontofindthe sumof first‘n’ evennumbersandprintthe result.
14.Write a pythonprogram to findthe exponentiationof anumber
15.Explainindetail aboutfunctionsanditstypes.
16 What is a tuple?Give example.Explainthe following.
i) Creatingatuple.
ii) Operationsontuple.
iii) Tuple Assignment
17.Write a pythonprogramto findthe factorial of a givennumberwithoutrecursionandwithrecursion.
18. Write a pythonprogram to generate first‘N’Fibonacci numbers.
(Note:The Fibonacci numbersare 0,1,1,2,3,5,8,13,21….. where eachnumberisthe sum of the
precedingtwo.)