PWP (22616) Question Bank - PTT1 (2023-24)
PWP (22616) Question Bank - PTT1 (2023-24)
Chapter 2
1. Write python program to illustrate if else statement.
2. Explain Bitwise operators in Python with appropriate examples.
3. Explain use of continue statement with suitable example.
4. What is operator? Describe membership operators with example.
5. Describe for loop with syntax and example.
6. What is difference between “ == ” and “ is ” operator in python?
Chapter 3
1. Explain with example basic operations of list.
2. Explain different methods for dictionary with suitable examples.
3. Write python program to perform following operations on Set
i. Create set
ii. Access set Element
iii. Update set
iv. Delete set
4. What are mutable and immutable types?
5. Write a python program to copy prime numbers from tuple T to a list. Tuple is given as
T = (13 , 15 , 17 , 23 , 25 , 30 , 50)
6. Write in brief about dictionary in python. Describe any four methods for dictionary.
7. Compare list and tuple in python.
8. Explain mutable and immutable data structures.
9. Enlist and explain with example methods for list.
10. Write the output for following if variable domain= "WebDevelopment".
i. domain[:3]
ii. domain[3:]
iii. domain[2:6]
iv. domain[-15:5]
Plot No. 2 & 3, Sector - 16, Near Thana Naka, Khandagaon, New Panvel (W), Navi Mumbai 410206
T : +91 22 2748 1508 / 2745 4670 F : + 91 22 2748 3726 Toll Free No. : 1800223278 E : [email protected] W : www.aiarkp.org