The document is a question bank for a class test focusing on Python programming concepts. It includes two-mark questions on object-oriented features, user-defined exceptions, modules, function definitions, variable types, data hiding, namespaces, file handling functions, and exception handling. Additionally, it contains four-mark questions that cover method overloading, try-except blocks, the Numpy package, inheritance, file operations, and class creation.
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 ratings0% found this document useful (0 votes)
7 views1 page
PWP Question Bank Class Test 2
The document is a question bank for a class test focusing on Python programming concepts. It includes two-mark questions on object-oriented features, user-defined exceptions, modules, function definitions, variable types, data hiding, namespaces, file handling functions, and exception handling. Additionally, it contains four-mark questions that cover method overloading, try-except blocks, the Numpy package, inheritance, file operations, and class creation.
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/ 1
PWP Question bank for class test-2
Two Marks Question
List different Object-Oriented features supported by Python. Write steps involved in creation of a user defined exception? Define module. What are the advantages of using module? Describe how function is defined and called in Python. Differentiate between local and global variables. Define Data Hiding concept? Write two advantages of Data Hiding. State use of namespace in python. State the use of read() and readline () functions in python file handling. Explain the term Exception Handling.
Four Marks Question
Explain method overloading in python with example.
Explain Try-except block used in exception handling in python with example.
Explain package Numpy with example.
Write a program to implement the concept of inheritance in python. Write a program to open a file in write mode and append some content at the end of file. Describe various modes of file object? Explain any two in detail. Write a program to create class student with Roll no. and Name and display its contents.