You are on page 1of 2

ISBM College of Engineering, Department of First Year

Programming and Problem Solving(110005)


Assignments and Question Bank
Course: FE, C Div & D Div

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

3 Prof. Kailash N. Tripathi


ISBM College of Engineering, Department of First Year
Programming and Problem Solving(110005)
Assignments and Question Bank
Course: FE, C Div & D Div

Date:30/04/2023
Assignment No: 02
Unit-02
Submission Date: 08/05/2023

1. Explain various types of decision control statements in python.


2. Write a python program to create a list, tuple and a dictionary and print the
elements of it.
3. State the difference between condition and counter controlled loop.
4. Draw the flow charts of:
 while loop
 for loop
 if-else
 if-elif-else
5. Write a program to find largest of two numbers using if else statement.
6. Write a program to calculate the sum and average of first 10 numbers.
7. Explain the range() function with example.
8. Write a program to swap two numbers using third variables and without using third
variable.
9. Explain with a suitable example :
 break
 continue
 and pass statement
 enumerate()
10. Write a program to print Fibonacci series.
11. Write a program to reverse and number and check whether it is palindrome
number or not.
12. Write a program to check a given number is Armstrong number or not.
13. Write a program to check a number is prime or not.
14. Write a program to calculate factorial of a given number.
15. 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

4 Prof. Kailash N. Tripathi

You might also like