You are on page 1of 1

Part A 5*2=10

1. What are building blocks of algorithm


2. What is a statement and instruction
3. Draw flowchart to compute the sum of square of integers from 1 to 50
4. List out the difference between tuple and list
5. Solve the following by operator precedence in python 10*5+(8**2)/7

Part B Any 2

1. What is tower of Hanoi? Discuss in detail .Write an algorithm, flowchart and


pseudo code.

2. Write an algorithm, flowchart and pseudo code to insert a card in to a list of


sorted cards with a neat diagram and explanation

3. (i) Write an algorithm, flowchart and pseudo code to guess an integer with in a
specified range
(ii) Draw a flowchart to find the given number is prime or not

4. (i) Write a python program to find the reverse of the given number using
functions
(ii) Write a python program to find the roots of a quadratic equation using
functions

5 i) Write a python program to swap two numbers

(ii) Write a Python program to find the distance between two points

(iii) Write a python program to circulate the values of n variables

You might also like