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

Mca1 1

The document contains questions about object-oriented programming concepts in C++ such as function overloading, polymorphism, encapsulation, scope, exception handling, operator overloading, input/output streams, and templates. Specifically, it asks about: 1) Overloading functions, polymorphism, and encapsulation. 2) Scope, naming variables, and inline vs macro functions. 3) Constructors, destructors, and exception handling. 4) Operator overloading and how binary operators can be overloaded using friends. 5) Input/output streams and using files in C++. 6) Templates and whether they can take values or have specific/mandatory parameters.

Uploaded by

jitender_13
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Mca1 1

The document contains questions about object-oriented programming concepts in C++ such as function overloading, polymorphism, encapsulation, scope, exception handling, operator overloading, input/output streams, and templates. Specifically, it asks about: 1) Overloading functions, polymorphism, and encapsulation. 2) Scope, naming variables, and inline vs macro functions. 3) Constructors, destructors, and exception handling. 4) Operator overloading and how binary operators can be overloaded using friends. 5) Input/output streams and using files in C++. 6) Templates and whether they can take values or have specific/mandatory parameters.

Uploaded by

jitender_13
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

PDM College of Engineering MCA-1st Semester OBJECT-ORIENTED PROGRAMMING USING C++ MCA-105 Time: Two Hours Note: Attempt

any five questions 1. (a) What is overloading of a function? Where & why we use this concept? (b) What do mean by polymorphism and encapsulation? 2. (a) What do you know about the scope and extent of declaration? Illustrate (6) (b) What are the rules of naming variables in C++? Illustrate. (6) 3. (a) What is inline function .how does inline function differ from preprocessor macro. illustrate function inherited. Justify your answer.. (6) (6) (b) What are virtual functions? Where are these needed? Are the virtual 4. (a) What do you understand by constructor and destructors. What is the order of execution of constructor and destructor in the inherited chain of classes? Illustrate than the normal error checking. (b) Can we throw exception from outside a try block? Justify your answer. (6) (6) (6) 5. (a) What is exceptional handling? How is the exception handling useful/preferred (6) Maximum Marks: 50

6. What is operator overloading? How is it useful? How binary operator operators can be overloaded using friends. Explain with suitable C++ code segments. 7. What do you understand by input and output streams? Illustrate the steps involved in using a file in a C++ program 8. what are templates . can temp-late also take values. Can template parameters be specific & mandatory. illustrate

You might also like