0% found this document useful (0 votes)
4 views3 pages

Python Model Question Papers

The document contains model question papers for Python programming, structured into sections that assess various topics such as data types, functions, error handling, and libraries like NumPy and Pandas. Each paper includes questions of varying difficulty, requiring short answers, explanations, and programming tasks. The format is consistent across multiple papers, with sections dedicated to different types of questions and marks allocation.

Uploaded by

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

Python Model Question Papers

The document contains model question papers for Python programming, structured into sections that assess various topics such as data types, functions, error handling, and libraries like NumPy and Pandas. Each paper includes questions of varying difficulty, requiring short answers, explanations, and programming tasks. The format is consistent across multiple papers, with sections dedicated to different types of questions and marks allocation.

Uploaded by

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

B.

2 Python Programming

Appendix B:Madel Question Papers


MODEL QUESSTION PAPER -1
Time :3 Hours MODEL QUESIION PAPER-2
Max Marks : 80 Time:3 Hours
Instruction: Answer all Sections. Max Marks:80
Instruction: Answer alI Sections.
SECTION-A
I. Answer any ten questions. Each question carries 2 marks. SECTION -A
10 X2=20 1. Answer any ten questions. Each cquestion carries 2 marks.
1. What isa Python Interpreter? 10%2=20
2. What is the use of the indentation feature in Python? 1. What is PVM in Python?
3. How does the range) function work in Python? Provide an 2. What isan identifier?
4. What are Runtime Errors? Give an example.
example. 3. What is the list data type in Python? How to create e líst and how to access its elements?
5. How Strings are created and stored in Python? 4. Define Indexing and Negative indexing with an example
6. What is Raw string? 5. What is text file? Give an example.
7. Define scope and lifetime of a variable. 6. What is SQLite database?
8. What is the set data type in Python? Explain how to
create a set and how to access its elements. 7. What is Multpath fnheritance in Python?
9. What is NumPy? 9. What is Pandas?
10. List and describe any 2 operations of files in Python. 10. What is Operator Overloading?
11. What is the purpose of Tkinter module in Python? 11. What is Format Operator? Give an example.
12. What are DataFrames in Pandas ? 12. What is Single and Multiple Inheritance.
SECTION -B SECTION-B
IL Answer any six questions. Each question carries 5 marks. 6x5- 30 IL Answer any six questions. Each quesfion carries 5 marlks. 6X5= 30
13. Explain the Features of Python. 13. Explain the different data týpes in python with an example
14. Describe the Looping statements in Python with example. 14. What is an Exception? Explain any Four Built-in function in Exception.
15. Explain the Exception Handling mechanism in Python with an example. 15. Explain Raw Strings and Uniocde Strings with examples.
16. Explain any 4 String Methods with examples. 15. Explain constructor methods in python with example.
17. Define Inheritance. Explain the types of Inheritance in Python. 16. Explain the various operations on alist with suitable eramples.
18. Explain Different File Opening Modes. 17. Writea python program to draw histogram and pie chart using matplotiib.
19. Explain how to implement the array operations using NumPy. 18. Explain any five operations on NumPy Arrays with examples.
20. What is Data Visualization ? Write aprogram to draw Line Chart using Matplotlib. 19. Explain any five operations on Strings with examples.
20 .Explain Series and DataFrames with examples.
SECTION -C
ll. Answer any three questions. Each question carries 10 marks. SECTION-C
3X 10= 30
3X 1030
21. a. Define Identifier in Python. Mention the rules for framing an identifier. L Answer any three questions. Each question carries 10 marks.
b. Mention the steps to Install Python IDE. 21. a. Explain Conditional Statements in Python with Examples.
22. a. Write short notes on the following: b. Write any five features of Python.
() String Concatenation (ii) String Slicing 22. a. Explain scope and lifetime of variables in unctions.
b. What are user-defined functions ?Write a Python program to demonstrate user-defined b. Explain connec), cursor), execute). close) and commit) methods of sqlite3 module.
functions. 23. a. How toaccess a list using Slicing? Givean example.
23. a. What are Files ? Write a Python program to read and write data into a file. b. How to Append a File? Explain with an example.
b. Explain constructors in Python with an example. 24. a. Explain Multilevel and Multiple Inheritance.
24. a. Describe windows and widgets in GUI. b. Explain any 5 widgets in Tkinter Module.
b. Explainthe methods of SQLite module.
Appendix B: Model Question Papers BS

B Python Programmning
MODEL QUESTION PAPER-4
MODEI QUESTION PAPER- 3 Max Marks:80
Time :3 Hours
Instruction :Answer alI Sections.
Time:3 Hours
Max Marks:80
SECTION-A
Instruction : Answer all Sections. 10X2=20
SECTION-A question carries 2 marks,
L Answer any ten questions. Each
I. Answer any ten questions Each questiancarries2 marks. 10x2= 20
1. Define variable in Python.
1. What are reserved lkeywords in Python? 2. What is indentation in Python?
2. What is the purpose of comments in Python? 3. What is the purpose of elif statement? its
How to createa dictionary and how to access
3. What is meant by multi-line statements in Python? 4. What is the dictionary data type in Python?
4. What is a suite in Python? elements?
compile time error and runtime error?
5. What is the use of import statement? 5. What is the difference between
6. What is the tuple data type in Python? How to create a tuple and how to access its elements? 6. What is Unicode string?
7. What is the use of exit) function? 7. What is the purpose of raise statement?
8. What is recursion in Python? 8. What is the return statement?
9. What is the use of finally block? 9. What is meant by objects as argurnents?
10. What is encapsulation in Python? 10. What is polymorphism?
11. What is a widget in Tkinter? 11. What is place(0in Tkinter?
12. What is a bar chart? 12. What is a histogram?
SECTION-B SECTION -B
6x5=30 6X5=30
1. Answer cny six questions. Each question carries 5 marks. Il. Answer any six questions. Each question caries 5 marks.
13. Explain input) and print) functions with suitable examples. 13. Explain different data types in Python with examples.
14. Explain if, if-else, and elif ladder with examples. 14. Explain nested if and elif ladder with examples.
15. Explain break and continue statements with examples. 15. Explain types of errors in Python with examples.
16. Explain default parameters and keyword arguments with examples. 16. Explain recursive functions with example program.
17. Explain escape sequences in Python strings with examples. 17. Explain format specifiers with exanmples.
18. Explain tuple operations with examples. 18. Explain set membership and set comparison with examples.
19. Explain operator overloading with a suitable example. 19. Explain NumPy array creation and indexing with examples.
20. Explain DataFrames in Pandas witha suitable example. 20. Explain how to draw a line chart and bar chart using Matplotlib.
SECTION-C SECTION-C
3X 10 = 30
II. Answer any three quesions. Euch question carries 10 merks. 3X 10= 30 I . Answer any three questions. Each question carries 10 marks.
21. a. Explain arithmetic, relational, and logical operators with examples. 21. a. Explain scope and lifetime of variables in functions.
b. Write a Python program to find the largest among three numbers. b. Write a Python program to find factorial using recursion.
22. a. Explain string joining and traversing with examples. 22. a. Dxplain raw strings and escape sequences with examples.
b. Write a Python program to count vowels in a given string. b. Writea Python program to reverse a string without using slicing. programs.
example
23. a Explain file operations create, open, read, write, and close. 23. a. Explain single inheritance and multilevel inheritance with
b. Write a Python programn to copy contents from one file to another. b. Explain constructor method with a suitable program.
24. a. Explain private instance variables with example. 24. a. Explain windows and widgets in Tkinter.
close) methods in sqlite3 module.
b. Explain insest and select operations in SQLite witB. a program. b. Explain connect(), cursor), execute(), commit(),
PythonProgramming

Time:3 Hours
MODELQUESTION PAPER-5
Instruction : Answer all Sections Max Marks: 80
SECTION -A
1: Answer any tenquestions., Each question carties
2 marks.
1. What is the purpose of Python IDE?
10x2= 20
2. What is meant by multiple statement
3. What is the use of input) function?
grouping?
4. What is string slicing?
5. What is the use of keys). values0, and
items) in adictionary?
6. What is the purpose of except block?
7. What is a user-defined function?
8. What is the difference between class attribute and
instance attribute?
9. What is multiple inheritance?
10. What is NumPy array?
11. What is Series in Pandas?
12. What is pie chart?
SECTION-B
. Answer any six questions. Each question caries 5 marks. 6X5=30

13. Explain how to run Python using interactive mode and script mode.
14. Explain dictionary traversal methods with examples.
15. Explain exception handling using try, except,and finaly with example program.
16. Explain any 5 string methods with examples.
17. Explain operations on files with examples.
18. Explain class and object creation with example program.
19. Explain NumPy array operations like reshape, sum, min, max with examples.
20. Explain Pandas Series and DataFrame with examples.
SECTION-C
I. Answer any three questions. Each question carries 10 mgrks. 3x 10=30
21. a. Define identifier. Mention rules for framing an identifier.
b. Write steps toinstall Python IDE.
22. a. Explain passing arguments in functions.
b. Write a Python program to demonstrate default parameters and keyword arguments.
23. a. Explain nultiple inheritance and multipath inheritance with example.
b. Explain operator overloading with example.
24. a. Explain how to create Data Frane from CSV fle in Pandas.
b. Write a Python program to draw histogram and pie chart using Matplotlib.
00000

You might also like