SILVER OAK UNIVERSITY
College of Technology (01)
Bachelor of Technology in (CE/IT) Engineering
Subject Name: Python Programming - Question Bank
Subject Code: 1010043221
Semester: 4th
Unit 1
1. Explain Python Features
2. What is Python? What are the benefits of using Python
3. What is a dynamically typed language?
4. What is an Interpreted language.
5. Compare python with C and Java.
6. What is the difference between a compiler and Interpreter? Explain How a python
interpreter works.
Unit 2
7. List Data types in python and explain any one
8. Briefly explain Data types and Variables in Python.
9. Write a program that calculates and prints the number of minutes in a year.
10. Differentiate Mutable Data types and Immutable Data types
11. Differentiate Scalar Data types and Sequence Data types
12. List the mutable data types and explain in details
13. What are the common built-in data types in Python?
14. What are lists and tuples? What is the key difference between the two?
15. List Immutable data types and explain in details
16. Explain Operators in detail. OR Discuss following Python’s operators: Arithmetic,
Assignment, Comparison, Logical with suitable examples.
17. Explain Membership and Identity data types in detail with examples.
18. Python program to add two numbers
19. Python – Extract Unique values dictionary values
20. Python program to print the sum of the numbers starting from 1 to 100?
21. Define a function which can print a dictionary where the keys are numbers between 1 and
20 (both included) and the values are square of keys.
22. Define a function which can generate a list where the values are square of numbers
between 1 and 20 (both included). Then the function needs to print the first 5 elements in
the list.
23. Write a program to generate and print another tuple whose values are even numbers in the
given tuple (1,2,3,4,5,6,7,8,9,10).
24. Which are the built in data types in python?
25. Write a program to reverse a list.
26. Differentiate between list and set
27. Explain a dictionary with examples.
28. Discuss in brief python “Dictionaries” with examples.
29. Assume that the variable data refers to the dictionary {'b':20, 'a':35}. Write the values of
the following expressions:
a. data['a']
b. [Link]('c', None)
c. len(data)
d. [Link]()
30. Write a python program to check Armstrong Number.
31. Write a Python program to add two matrices.
32. Differentiate List and Tuple in Python.
33. What are negative indexes and how are they used in Python?
34. What is the difference between range and xrange?
35. Write a python program to implement Fibonacci sequence for given input.
Unit 3
36. Explain Conditional statement structure in python with example
37. Explain While structure in python with an example.
38. What is The Structure and Behavior of a “while Loop” explained with an example.
39. Explain For structure in python with example
40. What is pass in Python?
41. What is break, continue and pass in Python? Explain with example
42. What is slicing in Python? Explain List and string with slicing
43. What are negative indexes and why are they used?
44. Write a program that accepts the lengths of three sides of a triangle as inputs. The
program output should indicate whether or not the triangle is a right triangle.
45. Python Program for Program to find area of a circle.
46. Python program to check whether a number is Prime or not.
47. Write a python script to Convert Decimal number to Binary number
48. Python | Reversing a List
49. Python program to find N largest elements from a list.
50. Explain Lists along with methods associated with lists and explain mutability with
respect to Lists.
51. Maximum of two numbers in Python
52. Write a program to find the average of numbers in a list in Python?
53. Write a program to reverse a number in Python?
54. Write a program to find the sum of the digits of a number in Python?
55. Write a Python Program to Check if a Number is a Palindrome or not?
56. Explain usage of continue, break, and pass keyword in python.
57. Write a program to sort the given list without using built-in methods.
58. Write a Python Program to Print Table of a Given Number?
59. Write a Python Program to Check if a Number is a Prime Number?
60. Python program to print even numbers in a list
61. Remove multiple elements from a list in Python
62. Explain all augments print() method
63. Python | Count occurrences of an element in a list
64. Remove common elements from two list in Python
65. Explain the while loop with an example.
66. Make a simple calculator using if else.
67. Explain Enumerate function with example.
68. Write a Program to print letters of string “Silver Oak University except e and s.
69. Print first 10 even numbers using a while loop.
70. Define a function named even. This function expects a number as an argument and
returns True if the number is divisible by 2, or it returns False otherwise.
71. Write a Python program that counts the number of occurrences of the character in the
given string.
72. Explain the following with an example.
1. Range
2. In operator
3. Not in
Unit 4
73. What does *args and **kwargs mean?
74. Write a Python Program to Find the Second Largest Number in a List?
75. Write a Python Program to Swap the First and Last Value of a List?
76. Write a Python Program to Count the Number of Vowels in a String?
77. Explain the use and structure of function in python.
78. Explain arbitrary number of arguments in function
79. Compare type conversion and coercion with examples.
80. Print sum of numbers from 1 to 5 using recursion.
81. Explain the inbuilt math function of python and explain any 2 with examples.
82. Write a Python function to calculate the factorial of a number (a non-negative integer).
The function accepts the number as an argument.
83. Write a Python program to find the reverse of a given string using a user defined
function.
84. Explain Python recursive function with an example.
Unit 5
85. Explain the concept of string slicing along with examples.
86. Write a program to find all occurrences of a substring in a string. Example: He is John.
John is fine. Expected output: The count of John is: 2
87. What is string concatenation? Explain different ways to concatenate strings.
88. Strings are immutable. Explain.
89. Explain indexing and slicing operations for string manipulation with examples in python.
90. Is String a mutable data type? Also explain the string operations length, indexing and
slicing in detail with an appropriate example.
Unit 6
91. Explain constructor in python with example.
92. Define following :
a. Class
b. Instance
c. Object
d. Inheritance
e. Polymorphism
93. Write a python program to demonstrate multiple inheritance
94. Write a Python class named Circle constructed by a radius and two methods which will
compute the area and the perimeter of a circle.
95. Explain self in python method.
96. Write a python code to create a class and its object along with attributes. Access the
attributes to create , update and delete.
97. Difference between function and method.
98. What is Abstract class in python. Explain with example.
99. Demonstrate Methods Overriding with example.
100. Write a note on operator overloading.
Unit 7
101. List Python framework. Explain any one in detail.
102. Write a note on Numpy .
103. Define the Pandas/Python pandas?
104. What is matplotlib. What is the use of matplotlib in data analytics.
105. Compare the python framework.
106. List the python libraries and Explain any two in details
107. Mention the different types of Data Structures in Pandas?
108. What are the significant features of the pandas Library?
109. Explain the operations that can be performed in NumPy.
110. Why is the shape property used in NumPy?
111. What is the difference between copy and view in NumPy?
112.
113.