0% found this document useful (0 votes)
34 views2 pages

Null 5

The document contains questions related to object-oriented programming concepts in C++. It includes questions about procedural vs object-oriented programming, need for OOP, OOP languages and applications, OOP concepts like encapsulation, inheritance and polymorphism, C++ features like namespaces and operators, function types, operator overloading, inheritance in C++, polymorphism and more.
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)
34 views2 pages

Null 5

The document contains questions related to object-oriented programming concepts in C++. It includes questions about procedural vs object-oriented programming, need for OOP, OOP languages and applications, OOP concepts like encapsulation, inheritance and polymorphism, C++ features like namespaces and operators, function types, operator overloading, inheritance in C++, polymorphism and more.
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
You are on page 1/ 2

OOP oral questions

C++
What do you mean by procedure oriented and object oriented languages? (compare them)
Ans:

Procedural Programming is a programming model derived from structured programming that is


1.
based on the concept of calling procedures. Procedures, also known as routines, subroutines, or
functions, are simply a set of computational steps to be performed. Any given procedure may be
called at any time during the execution of a program, including by other procedures or by itself.

2. What is the need to shift from procedure to object oriented languages?


3. Mention different OOP languages. Mention OOP applications.
4. What is top-down and bottom –up approach.
5. Concepts/ features of OOPL.
6. Show two ways to of representing an object.
7. What is object? What is class? Explain with example of student database.
What is (explain with example of student database)
8. 1. data abstraction 2. Encapsulation 3. Inheritance. 4.Polymorphism
5.dynamic binding.
9. Benefits of oop.
10. Who is the developer of C++?What is iostream.h?
11. What is namespace?
12. What are Output and i/p operators?
13. What is the default return type of main in c++?
14. What is achieved with cascading of i/p operators?
15. What is the structure of the C++ program? Show with reference to your assignments.
What do you mean by tokens? Mention all of them.
16.
Show tokens from any assignment you have completed.
17. How many new keywords are added in C++ (48 old+15)?
18. What are identifiers? Show identifiers from any assignment you have completed.
What are basic data types, new data types introduced and user defined data types in C++?
19.
Draw hierarchy.
20. Compare structure and unions. Compare structure and classes.
21. What is the meaning of Enumerated data types? explain with example.
22. Write down all differences in c and c++. (make a table till you finish C++)
What is the need of reference variable (alias)? Write down a syntax of it. Explain graphically.
int x=10;
23. int & X=x;
cout<<x<<X;
cout<<&x<<&X; // what are outputs
24. Mention all new operators introduced in c++.
25. :: - this symbol is known as what? Mention two uses of it.
26. Which is dereferencing operator?
27. How an object is created dynamically? (which operator is used)
28. What is delete operator?
29. What are manipulators? Endl, setw(n) explain.
30. Show how type casting is done with example.
31. Mention all types of expressions
32. Mention variety of assignment expressions.
33. What is waterfall model? What is implicit (automatic) conversion.
34. What is the need of operator overloading(OO)
35. How many function calls are present? Show with prog. Of add of two numbers.
36. Mention and show (in assignments) three/two parts of functions .
What are various types of functions available in C++
37. 1. main, inline, constructors, destructors, recursion, friend, virtual, pure virtual library, member
functions, static member functions.
What are features /limitations/ characteristics/rules of following functions.
38.
1. inline 2. Friend. 3. Virtual.
39. Compare inline functions and macros.
40. What are default arguments? What is the rule and need of using it.
41. What is const argument.
42. What is function overloading?
43. Explain Memory allocation for objects, functions, static data members of a same class.
44. Show an array of objects, object as a parameter, object as a return value, const object
45. What is the need of friend function in function overloading?
What is the o/p for each of it explain. (c1, c2, c3 are classes)
C3=c1+c2;
46.
C3= c1+5;
C3=5+c2;
47. What is operator overloading? What are rules
48. What are various types on constructors, show in your assignment. Explain need of of each of it.
49. Which operators can not be overloaded.
50. Mention where friend function can’t be used to overload operator.
51. Explain Type conversions of class with example.
52. What is inheritance? Mention various types with examples.
53. What is default access specifier in C++.
54. When protected access specifier comes into the picture.
55. What is diamond problem? (in Inheritance )
56. Explain visibility of inherited members.
What are various types of classes and explain them.
57.
Friend, virtual, abstract, member classes, nested classes(local)
58. What is dynamic overloading and over riding?
59. What is polymorphism? Classify it.
60. What is “this”pointer?
Declare Pointer to member functions, variable of your own example class. (with dot and arrow
61.
operator)

You might also like