0% found this document useful (0 votes)
14 views

Important_Question_OOPS

Uploaded by

adarshkarn301
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
14 views

Important_Question_OOPS

Uploaded by

adarshkarn301
Copyright
© © All Rights Reserved
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

Important Question / subject: Introduction to OOP using C++

Module 1
1) List and explain any four basic concepts of OOP with examples.
2) What are the rules for naming variables in C++? Give examples of valid and invalid variable names.
3) Draw a UML class diagram for a Library Management System
4) What are classes and objects in C++? Explain with an example.
5) What is the dot (.) operator in C++? Give an example.
6) What are data members and member functions? Explain with an example.
7) Explain the syntax and working of an if and if-else statement with an example.
8) Write a C++ program demonstrating parametrized constructor.
9) Write a C++ program demonstrating non parametrized constructor.
10) Explain private, public, and protected with examples.
11) Explain the difference between while and for loops with suitable examples.
12) Explain different string manipulation functions such as strlen(), strcpy(), and strcat() with examples.
13) Write a program to check whether a given number is even or odd using an if-else statement.
14) Write a program using a while loop to print the first 10 natural numbers.

Module 2
1) What is function overloading? Write a C++ program demonstrating function overloading.
2) Explain Function Overriding with proper example.
3) Explain virtual functions in C++ with an example.
4) Explain Pure Virtual Function in C+++ with an example.
5) Explain the * (dereference) and & (address-of) operators with an example.
6) What is a friend function? How does it differ from a normal function? Provide an example.
7) What is Inheritance? Write a program demonstrating Single Inheritance.
8)What is Inheritance? Write a program demonstrating Multiple Inheritance.
9) What is Inheritance? Write a program demonstrating multilevel inheritance.
10) Differentiate between static binding and dynamic binding with examples.
11) Explain the concept of Pointers with proper example.

You might also like