0% found this document useful (0 votes)
5 views

Enlist Applications for Python Programming

The document outlines various topics related to Python programming, including applications, features, data types, operators, control structures, and file handling. It also includes programming tasks and examples, such as creating classes, using modules, and exception handling. Additionally, it covers built-in functions, data structures, and the concept of object-oriented programming in Python.

Uploaded by

pratiksingh6005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Enlist Applications for Python Programming

The document outlines various topics related to Python programming, including applications, features, data types, operators, control structures, and file handling. It also includes programming tasks and examples, such as creating classes, using modules, and exception handling. Additionally, it covers built-in functions, data structures, and the concept of object-oriented programming in Python.

Uploaded by

pratiksingh6005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1. Enlist applications for Python programming.

2. Describe the role of indentation in Python.

3. Explain building blocks of Python.

4. List features of Python.

5. Describe any two data conversion functions

6. Write the use of elif keyword in Python

7. Explain membership and identity operators in Python

8. Write a Python program to display the following output 2,4.6.8,12.12.14.16.18

9. Explain the use of pass and else keywords with for loops in Python

10. Describe membership operators in Python

11. Describe the keyword continue with an example.

12. Write a Python Program to find the factorial of a number provided by the user

13. Describe bitwise operators in Python with an example

14. Write a Python program to illustrate an if-else ladder.

15. Write Python code for finding the greatest among four numbers.

16. List identity operators in Python

17. Write a program to print the following pattern: 1

1,2

1,2,3

1,2,3,4

18. Explain membership and assignment operators with examples.

19. Explain decision-making statements if-else, if-elif-else with examples

20. Explain two ways to add objects/elements to a list

21. Explain four built-in list functions.

22. Given the tuple T = ('spam', 'Spam', 'SPAM!', 'SaPm'), write the output for the following
operations:

print(T[2])

print(T[-2])

print(T[2:])

print(list(T))
23. Explain different functions or ways to remove a key-value pair from a dictionary
24. Explain any four set operations with examples.

25. List and explain any four built-in functions on sets

Write down the output of the following Python code

: indices = ['zero', 'one', 'two', 'three', 'four', 'five'] i) indices[:4] ii) indices[:-2]

26. Explain creating a dictionary and accessing dictionary


elements with an example. (Summer-23) 6 Marks
27. Explain any four Python built-in functions with examples.
(Summer-23) 6 Marks
28. Write a Python program to interchange the values of two
tuples. (Summer-23) 4 Marks
29. Differentiate between lists and tuples. (Summer-23) 4 Marks
30. Write a Python program to accept values from the user in a
list and find the largest and smallest numbers in the list. (Summer-
23) 6 Marks
31. Explain any six set functions with examples. (Summer-23) 6
Marks
32. Describe tuples in Python. (Winter-22) 2 Marks
33. Write any four methods of dictionaries. (Winter-22) 4 Marks
34. Explain basic operations of lists. (Winter-22) 4 Marks
35. Compare lists and dictionaries (any four points). (Winter-22) 4
Marks
36. Explain any four file modes in Python. (Winter-22) 4 Marks
37. Write a Python program to perform the following operations
on a set:
1. Create a set
2. Access set elements
3. Update the set
4. Delete elements from the set
(Winter-22) 6 Marks
38. Give two differences between lists and tuples. (Summer-22) 2
Marks
39. Explain four built-in tuple functions in Python with examples.
(Summer-22) 4 Marks
40. Explain indexing and slicing in lists with examples. (Summer-
22) 4 Marks
41. Write a program to create a dictionary of students including
their roll numbers and names. Perform the following operations:
1. Add three students to the dictionary
2. Update the name of the student with roll number 2 to
'Shreyas'
3. Delete the information of the student with roll number 1
(Summer-22) 4 Marks
42. State the use of namespaces in Python. (W-23) 2 Marks
43. Write a Python program using a module, showing how to write
and use a module by importing it. (W-23) 4 Marks
44. Explain the NumPy package in detail. (W-23) 4 Marks
45. Write a program illustrating the use of a user-defined package
in Python. (W-23) 6 Marks
46. Write the use of the lambda function in Python. (Winter-22) 2
Marks
47. What are local and global variables? Explain with an
appropriate example. (Winter-22) 2 Marks
48. Explain how to define a module. (Winter-22) 6 Marks
49. Explain how to use user-defined functions in Python with an
example. (Summer-22) 4 Marks
50. Write a program for importing a module for addition and
subtraction of two numbers. (Summer-22) 4 Marks
51. Explain the use of the format() method with an example.
(Summer-22) 4 Marks
52. Write a program illustrating the use of a user-defined package
in Python. (Summer-22) 4 Marks
53. Explain the NumPy package with an example. (Summer-22) 6
Marks
54. Define the concept of data hiding. Write two advantages of
data hiding. (W-23) 2 Marks
55. Explain method overloading and overriding in Python. (W-23)
4 Marks
56. Write a program to create a class Student with roll number and
name and display its contents. (W-23) 6 Marks
57. Write a program to implement the concept of inheritance in
Python. (W-23) 6 Marks
58. With a neat example, explain the default constructor concept
in Python. (Summer-23) 2 Marks
59. Describe the self parameter with an example. (Summer-23) 4
Marks
60. Design a class Student with data members: name, roll number,
department, and mobile number. Create suitable methods for
reading and printing student information. (Summer-23) 6 Marks
61. With a suitable example, explain inheritance in Python.
(Summer-23) 6 Marks
62. Write the syntax of defining a class in Python. (Winter-22) 2
Marks
63. What is a command-line argument? Write Python code to add
two numbers given as input from command-line arguments and
print their sum. (Winter-22) 4 Marks
64. Create a parent class named Animal and a child
class Herbivorous that extends the class Animal. Override the
method feed() in the child class. Create an object. (Winter-22) 6
Marks
65. Define class and object in Python. (Summer-22) 2 Marks
66. Write a program to create a class EMPLOYEE with ID and NAME
and display its contents. (Summer-22) 4 Marks
67. Explain method overloading in Python with an example.
(Summer-22) 6 Marks
68. State the use of read() and readline() functions in Python file
handling. (W-23) 2 Marks
69. Describe various modes of file objects. Explain any two in
detail. (W-23) 4 Marks
70. Explain seek() and tell() functions for file pointer manipulation
in Python with examples. (W-23) 4 Marks
71. Write a Python program to read the contents of first.txt and
write the same content to second.txt. (W-23) 4 Marks
72. Describe the mkdir() function. (Summer-23) 2 Marks
73. Differentiate between readline() and readlines() functions in file
handling with neat examples. (Summer-23) 4 Marks
74. Write a program to show a user-defined exception in Python.
(Summer-23) 4 Marks
75. Explain the try-except block used in exception handling in
Python with an example. (Winter-22) 4 Marks
76. Write Python code to count the frequency of each character in
a given file. (Winter-22) 4 Marks
77. Write a Python program to read the contents of abc.txt and
write the same content to pqr.txt. (Winter-22) 4 Marks
78. List different modes of opening a file in Python. (Summer-22)
2 Marks
79. Write a program to open a file in write mode and append
some content at the end of the file. (Summer-22) 6 Marks
80.

You might also like