0% found this document useful (0 votes)
189 views5 pages

Advance Python Question Bank

Uploaded by

Shashwat Arora
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
Download as xlsx, pdf, or txt
0% found this document useful (0 votes)
189 views5 pages

Advance Python Question Bank

Uploaded by

Shashwat Arora
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1/ 5

SI.

No Questions
1 Define a Class & an Object
2 Define Numpy. Show how to create arrays using Lists
3 Write a function to determine To determine any of the element in array is True:
4 Define Functional Programing
5 Define iterator in python with sample code.
6 Write a Python program to demonstrate Encapsulation
Write a python code to describe the functions ‘reduce’ & ‘total ordering’ function in
7
functools
Generate any 10 random integers between 1 to 100. Sort them in Ascending and
8
Descending order, Display only the Odd Numbers among them.
Mention the various types of Iter Tools. Write a code to demonstrate the Infinite Iter Tools
9
using Count, Cycle iterables
10 Define Inheritence & Polymorphism.
11 Define Arrays in numpy. Show how to create arrays using a Tuple
12 Write a function to determine To determine all the element in array is True:
13 Define Object Oriented Programing
14 Define generator in python with sample code.
Generate any 5 random Decimal between 1 to 100. Sort them in Ascending and
15
Descending order, Display only the Even Numbers among them.
Define the various types of Iter Tools. Write a code to demonstrate the Terminating Iter
16
Tools using dropwhile, takewhile iterables
17 Write a Python program to demonstrate Polymorphism
Write a python code to describe the functions ‘Compare to key’ and ‘reduce’ function in
18
functools
19 Define Object Oriented Programing
20 Define Data Frame & Pandas
21 Describe the functionality of Zip function in Itertools with code
22 Define Functional Programing.
23 Mention the three types of Itertools.
24 Write a Python program to demonstrate Inheritance
25 Write a python code to describe the functions ‘accumulate’ & ‘Chain’ function in itertools

Generate any 10 random integers between 1 to 1000. Demonstrate the use of filter
26 function to extract all the even values and Enumerate function to counts off the elements
in the iterable returning 2-tuples containing the count (from start) and each element.

Mention & Define the two class of funtools. Demonstrate any 3 function with a python
27
code
28 Define a Polymorphism & Encapsulation
29 Write a Python Program for Creating an Object and Class in python
30 Write a function to determine all of the elements in array are True:
Mention the various recursive generators that are used to simplify combinatorial
31
constructs
32 Define Generator in python with sample code.
33 Write a Python program to demonstrate Polymorphism
34 Write a python code to describe the functions ‘islice’ & ‘starmap’ function in itertools

Generate any 10 random integers between 1 to 100.Demonstrate the use of filter function
35
to extract the multiples of 5, Also Enumerate function to.
36 Mention the various types of Functools.
37 Write a code to demonstrate the ‘Partial function’ & ‘Partialmethod class’
38 Define class and object with simple example in python
39 Describe any four attributes in line graph function
40 Give a python code snippet to generate any decimal random number (30,80).
41 Explain generator function with example
42 Explain Infinite iterators with cycle()
43 Define Polymorphism with example.
44 Explain any for attributes of bar graph function
45 Explain the use of send() in generator with example
46 What is iterator? Mention its methods
47 Define functools with example
48 Describe any four attributes in histogram function
49 Explain the use of any() in generator with example
50 Define Inheritance with example.
51 Explain any four attributes of barh function
52 What is Infinite iterators? Write its types
53 Describe generator with example
Create 4 separate list which contain the 5 subjects marks of 4 students and display all the
54
4 list in a single list using chain().
55 Write a python generator to print the multiple of 5 numbers till 60
56 Generate a Fibonacci series using python generater
Suppose there is list of characters “ Good Morning Have a nice day” and you are asked to
57 print only the characters o r n H a c d. Use a appropriate Terminating iterator function to
get this output
Create 4 separate list which contain the 5 subjects marks of 4 students and display all the 4
58
list in a single list using chain.from_iterable function.
59 Write a python generator to sum the first 7 random numbers
Suppose a single list is having 5 tuples, each tuple is having 4 values. Create a new list
60
which contains the minimum number of each tuple by using starmap()

Suppose there is list of characters “ Nothing is Impossible” and you are asked to print only
61
the characters t n g p i e. Use a appropriate Terminating iterator function to get this output

In exam , Ram has scored the following marks 30,45,68,32,28,75 in his 6 subjects. Using
62
appropriate iter tools filterfalse() print the marks which is less than 35.
Write a program to print the successive summation of first 5 random numbers using
63
accumulate()

Suppose Ram is the HR of XYZ company and he want to present the employee salary
details to the director of the Company, for that he need to prepare a presentation . Based
on the data set given help the Ram to provide the following details

64 § Create a bar graph for ‘YearsExperience' and ‘Salary’


§ Label the x and y axis and Display the data of last 10 employee
§ Display the missing value in the dataset and give the statistical information
§ Display the Employee name and salary whose experience is greater than 4 years
§ Sort the employee data based on salary in ascending order
Imagine that Maya own a true value car showroom and she has been asked to give
complete report of the cars to the clients. Help Maya to prepare a report by using the car
data set. Following are the details to be included in the report
65 § Create a line graph for kms_driven and selling price
§ Label the X axis and Y axis with proper names
§ Display the data of car name, year, present price and fuel type of the cars
§ Display the car name and year whose selling price is greater than 5
66 Describe file handling. Illustrate the various file operations and various modes
67 State Networking concept
68 Illustrate Socket Programing in Python
69 Explain HTTP Requests
70 Identify the various APIs
71 Describe Object Relational Mapping
72 Explain ORM Concepts
73 Explain about debugging in Python
74 Explain the advantages of comments for debugging?
75 List various methods for program debugging in Python
76 Explain how do you optimize Python code for performance?
Determine how do you optimize the performance of your Python program to make it run
77
faster or consume less memory
78 Discuss the libraries that data scientists use to plot data in Python
79 create customized data along with its libraries, graphs, charts, histogram
80 Define web scraping ?
81 Discuss the pros and cons of web scraping
82 Compare the different types of web scraping techniques that can be used
83 Explain the common types of Errors in the Python programming with an example for each
84 Describe Debugging with Logging
85 Explain Python cProfile with a simple Python code
Describe the Debugging of any given program using Python 'pdb' module and the various
86
commands
87 Describe Python time module with a simple program
88 Describe Python time module

Write a program to perform the following operation using seek() and basic file operations.
Open file "Months.txt" in write mode.
Write Months from January to June in a file Months.txt
89 Use seek() to read the content of the file.
Set the pointer to the end of the file and append 'July' and 'August', to the existing file
Month.txt.
Read and print all the content of the file.

90 Define about file handling process.


91 list out various operations of file.
92 How to open a file in python? and give simple example code.
93 what are the various modes available to open a file?
94 explain with a python program to create a new file.
95 enumerate the sequence of file operations from begining to end.
96 generate 10 natural numbers in a text file with help of python program
97 how to read a file with help of python program?
98 Describe Seek() function in python file handling.
99 Elaborate about exception handling in python with different type.
100 give an example for Handling Exception raised by User defined Functions.
101 Define socket with a example in python
102 list out python socket library functions.
103 explain Python Socket Module with available arguments
104 write a server module program using socket library in python.
105 write a client module program using socket library in python.
106 Define about API and its usage in python.
107 Explain REST API in short.
108 Narrate about HTTP method and how it is useful in web operations.
109 List out HTTP methods with its description.
110 What is the meaning of endpoints in REST API?
111 How to make GET request through API?
112 Give abbreviation of JSON and use of it in python?
113 Write a python code for GET request.
114 Write a python code for POST request.
115 Explain Object Relational Mappers(ORM).
116 Illustrate ORM with a simple diagram.
117 compare SQL code with ORM code by a example code snippet.
118 Tabulate ORMs with different web frameworks and connectors and relational databases
119 Why use an ORM ? Justify with an example scenario.
120 Differentiate between ORM and SQL
121 list out Python ORM Implementations
122 What are the advantages while using ORM?
123 What are the disadvantages during implementation of ORM?

You might also like