PCA25C04J · Cycle Test 1
Covers units 1 & 2: Introduction / Object Oriented Programming
Answer Any 4 Questions
What is meant by block structure in Python, and how is indentation used to define blocks of code?
Describe how arithmetic and relational operators are used in Python expressions with suitable examples.
Write a Python program using decision-making statements to check whether a given number is positive, negative, or zero.
Define classes and objects in Python with suitable examples.
Discuss static method in Python with an example program.
Write a Python program to demonstrate the use of constructors.
Answer ALL the Questions
Illustrate Numeric, Sequence, Dictionary, Set data types in Python with suitable examples.
Analyze the different types of functions in Python and explain how various types of arguments influence the behavior and flexibility of function calls.
Write Python programs to demonstrate the concept of Multilevel, Hierarchical and Hybrid Inheritance.
Discuss Method Overloading and Method Overriding in Python with suitable programs.