0% found this document useful (0 votes)
6 views2 pages

QuestionBank Python 2024

The document is a Python Question Bank for 2024 from LJ University, covering various topics such as Python basics, functions, object-oriented programming, exception handling, file handling, NumPy, Matplotlib, GUI, and database interactions. Each unit contains multiple questions aimed at assessing knowledge and understanding of Python programming concepts. The questions range from explaining key features and data types to practical examples of using libraries and building graphical user interfaces.

Uploaded by

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

QuestionBank Python 2024

The document is a Python Question Bank for 2024 from LJ University, covering various topics such as Python basics, functions, object-oriented programming, exception handling, file handling, NumPy, Matplotlib, GUI, and database interactions. Each unit contains multiple questions aimed at assessing knowledge and understanding of Python programming concepts. The questions range from explaining key features and data types to practical examples of using libraries and building graphical user interfaces.

Uploaded by

kunnumudaliar925
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

LJ University

IMCA
Python Question Bank-2024

Unit 1: Introduction to Python


Q. No. Question
1. Explain key Features of Python
2. Discuss operators in Python.
3. Briefly explain “in”, “not in”, “is”, “is not” in Python with example
4. Explain looping statements available in python. Specify examples of while and for
Loop
OR Explain Iterative construct in python in detail.
5. Explain if condition in Python with example.
6. Answer the following:
What is comment in python programming?
What is the use of ‘del' statement?
Explain ‘pass’ statement in python.
Explain the ** operator.
Explain the ‘input’ function.
Explain range() function.
7. Discuss break, continue and pass statements in Python
Unit 2: Functions, Mutable and Immutable Data
Q. No. Question
8. Explain function in Python. Take suitable examples to justify the syntax for function definition,
call, return values.
9. Explain Formal and Actual arguments, positional, keyword, default and variable length
arguments with respect to function call in python. Take appropriate examples for each to
explain in detail.
10. Explain local and global variables in python with the help of program.
11. What is Lambda function in python? Explain with example.
12. What is mutable data in Python?
13. What is immutable data in Python?
14. Explain List and Tuple. Also write difference between them.
15. Describe all methods of String in python with example.
16. What is Dictionary? List dictionary methods.
17. What is sets in python? Explain its methods.
18. Describe all methods of List in python with example.
19. Describe all methods of Tuple in python with example.

Unit 3: OOP in Python, Exception Handling and File Handling


Q. No. Question

1
LJ University
IMCA
Python Question Bank-2024
20. Discuss OOP’s concept in Python.
21. Discuss self parameter in class of Python.
22. What is constructor? How to define constructor in python?
23. What is inheritance? Explain with example.
24. Explain multiple levels of inheritance with suitable example using python script.
25. What do you mean by Exception Handling? Explain types of exceptions in detail.
26. Explain user defined exception with examples.
27. Explain functions to read and write in a file.
28. Explain ftell() and fseek() method of file handling in python.
29. Discuss OS module of python to remove and rename a file
Unit 4: Numpy and Matplotlib
Q. No. Question
30. What is NumPy? What are the uses of NumPy? How a numpy array is different from list
31. Explain what slicing does to an array with example.
32. How can you find the shape of a NumPy array? Provide a simple example of reshaping a 1D
array into a 2D array.
33. How do you iterate through a NumPy array? List three built-in functions in NumPy and give an
example of each.
34. What does [Link]() do? Provide a brief example
35. What is the use of [Link]()? Give a practical example. Explain how to sort a NumPy
array using [Link]().
36. How do you create a basic line plot using Matplotlib explain with example?
37. How do you create a basic bar plot using Matplotlib explain with example?
38. How do you create a pie using Matplotlib, give example?
39. How do you create a pie using Matplotlib give example?
40. How do you create a Histogram using Matplotlib give example?
41. What function adds grid lines to a Matplotlib plot? Also, how do you create subplots using
subplot()? Provide a simple example.
Unit 5: Pythhon GUI and database
Q. No. Question
42. Briefly explain the role of the MySQL cursor object in Python with an example.
43. Write query for create database, create table, insert/delete/update/fetch record, drop table and
alter table.
44. Discuss any three Tkinter widgets with example.
45. Explain Python Tkinter pack()/grid()/place() method with example.
46. Write any two options that can be passed as parameter for entry/canvas/button/label widget.
47. Explain radio button/check button widget with example.

You might also like