Professional Documents
Culture Documents
Date:30/04/2023
Unit-2
Question Bank
1. Explain Tuple and List with a suitable example. Also state the difference between
them ? Write any five methods used with tuple and list.
2. Explain various Loop Control statements in Python. Draw flow charts also.
3. Explain Decision control statements in python. Draw flow charts also.
4. List Decision Control Statements and Iterative Statements in Python.
5. Write a python program to create list, tuple and Display it.
6. State the difference between conditional and counter controlled loop.
7. Define Dictionary with example. Write five methods used with dictionary.
8. State how else statement can be used in loops? Explain with example.
9. Explain the syntax for if..elif..else condition and give example.
10. Write a program to find largest of two numbers using if else statement.
11. Write a program to find whether the number is even or odd.
12. Write a program to compare two numbers using nested if condition.
13. Write a program to calculate the sum and average of first 10 numbers.
14. Explain the range() function with example.
15. Write a program to swap two numbers using third variables and without using third
variable.
16. Explain with a suitable example :
break
continue
and pass statement
enumerate()
17. Write a program to print Fibonacci series.
18. Write a program to reverse and number and check whether it is palindrome
number or not.
19. Write a program to check a given number is Armstrong number or not.
20. Write a program to check a number is prime or not.
21. Write a program to calculate factorial of a given number.
22. Write a program to print following pyramid pattern of numbers
* 1
** 1 2
a) *** b) 1 2 3
**** 1 2 3 4
***** 1 2 3 4 5
***** 01234
c) **** 0123
*** d) 012
** 01
* 0
Date:30/04/2023
Assignment No: 02
Unit-02
Submission Date: 08/05/2023
***** 01234
c) **** 0123
*** d) 012
** 01
* 0