Introduction to object-oriented programming Questions
Computer Science 101 - Programming Fundamentals Past Papers
Practice 19 past-paper questions for Introduction to object-oriented programming in Computer Science 101 - Programming Fundamentals. Get solutions and exam preparation resources.
Click on a question to view the full answer
1. What are the four pillars of Object-Oriented Programming (OOP)? Explain each briefly.
View
2. What is the difference between a class and an object in OOP?
View
3. What is inheritance in OOP? Provide an example in Python.
View
4. Which of the following is not a multitasking operating system?
View
5. Given a square matrix A of size 10 x 10, write a program that identifies whether the given matrix is a diagonal matrix o…
View
6. Create a structure called 'Employee' with attributes name, salary, year and taxable; name variable stores a name of an e…
View
7. What is method overriding? Why it is used in OOP? Explain with an example.
View
8. Define a class called "Circle" with following attributes: radius, and include member functions to set the radius, calcul…
View
9. What is Friend Function? Why it is used in OOP? Explain with an example.
View
10. Write a program that illustrates the concept of template in C++.
View
11. Describe about the multilevel inheritance with suitable program.
View
12. Define a virtual base class. Write a program to create a base class i.e. Employee. Derive two classes: administrative an…
View
13. ### 1. What is abstraction in Object Oriented Programming?
**A)** Data Hiding
**B)** Information Hiding
**C)** Abstract…
View
14. Explain in brief why Object oriented programming is an appropriate paradigm for real world modeling applications.
View
15. Explain the following Python code snippet, including its expected output:
def process_string(s):
vowels = "aeioudEIOU"
v…
View
16. 8. Explain the four categories of user-defined functions and provide at least one example of each category. Differentiat…
View
17. Differentiate between count controlled and condition controlled loop with suitable example. Write a Python program to di…
View
18. library is required for creating chart or data visualization in python.
View
19. What is the primary goal of database normalization?
View
Sponsor Space