MAHENDRA COLLEGE OF ENGINEERING
PROBLEM SOLVING USING PYTHON PROGRAMMING – question
bank
Two marks
[Link] are the factors used to judge the quality of the algorithm?
[Link] is better iteration or recursion? Justify your answer.
[Link] will you analyze the efficiency of an algorithm?.
[Link] the pseudo code to calculate the sum and product displaying the answer
on the monitor screen.
[Link] an algorithm to find the minimum number in a given list of numbers.
[Link] is python comments?
[Link] the operand(s) and operator(s) in the following expression:
sum=a+b
[Link] down the output for the following program. first = 'throat' second =
'warbler' print first + second
[Link] is python indentation?
[Link] a snippet to display “Hello world” in python interpreter.
[Link] an algorithm to accept two numbers. Compute sum and print the
result.
[Link] an algorithm to find the biggest of three numbers.
[Link] are the benefits of pseudocode?
[Link] are the factors used to judge the quality of the algorithm?
[Link] an algorithm to guess an integer in the given range of numbers.
[Link] do you assign a value to the tuple in python?
[Link] are keywords? Give an example
[Link] down the output for the following program.
>>> T1 = (10,20) >>>T2=(100,200) >>>T1,T2=T2,T1
>>>print(T1) >>>print( T2)
[Link] is numeric literal?
[Link] a python program to exchange the values of two numbers without
using temporary variable.
Ten marks
[Link] the flowcharts. guidelines for preparing flowcharts, benefits and
limitations of using
[Link] is Programming Language? What are its types? Explain them in detail
with their advantages and disadvantages.
[Link] briefly Towers of Hanoi?
[Link] the various expressions supported by python with example.
[Link] an algorithm to insert a card into a list of sorted cards
[Link] the various arithmetic operators in Python with an example.
[Link] about the algorithmic problem solving technique with suitable flow of
process and example.
[Link] the importance of tuple assignment, mutable and immutable data
types with suitable example.
[Link] about different types of python operators with example scripts.
[Link] an algorithm to compute the factorial of a number n.
[Link] about interpreter and explain how python works in Interactive mode
and script mode with examples.