-
Dynamic Binding
Why is Dynamic binding (regarding DLLs) are considered better in comparison with static binding? What are DLLs and how they work?
-
Top Down and Bottom up Approach
Why we fallow top down approach in c-language and bottom up approach in c++?explain?
-
-
Default Constructor
What is the Default Constructor?
-
Data Encapsulation
Which one of the statements concerning data encapsulation is FALSE? A. Data encapsulation lets the programmer create an object and then provide an interface that other objects can use to invoke the methods provided by that object. B. Programmers can change the internal working of an object, but this may be transparent as long as the interface remains unchanged. C. Data encapsulation works well for...
-
Arithmetic Operations using Operator Overloading
Write a program for all the four arithmetic operations in float data type using operator overloading concept.
-
Base Class Destructor
In C++, which of following statements accurately describe a base class destructor calling a virtual function override of a derived class?A. the base class destructor calls the virtual function of the base class and not of the derived class.B. the base class destructor calls the virtual function override of the derived class through th vtable.C. the C++ compiler maintains the overridden virtual function...
-
Two Dimension Array
A two dimension array can also be thought of asChoose one answer. a. Table. b. Array of arrays.c. A file.d. None of the above e. A and B
-
Multi-Dimension Array Size
If you need a function that will handle multi-dimensional arrays, you must specify the following sizes inside the square brackets.Choose one answer. a. All sizes except the first dimension b. None of the sizes c. All sizes except the last dimension d. All the sizes
-
Program Crash
When can it happen that before calling main function itself program gets crashed?
-
Memory Allocation
Why is it suggested not to use malloc() or calloc() in C++ for memory allocation?
-
Pointers Datatype
What is the datatype of pointer?
-
Operators
In the following code fragment, which is the calling object for the less-than operator?string s1, s2;if( s1 < s2 )Choose one answer. a. s1 b. < c. s2 d. none
-
Classes
What error is caused by the following code ?class TemperatureList { public: TemperatureList( ); private: double * list; int size;};void func(Money amount);[...]int main{ TemperatureList list1; func(list1); return 0;}Choose one answer. a. double free b. divide by zero c. illegal argument d. no error
-
Copy Constructor
Explain what is copy constructor and what is the difference between copy constructor and overloaded assignment operator
-
-
Which of the following operators can not be overloaded
A) == b)++ c)?! d)
-
Inline functions advantages
What is the inline function and what is the use of inline function?
-
-
C++ conversion program
How can I write a program that convert a given number of millimeters into the equivalent length in meters and meters into the equivalent length in millimeters?Also draw flowchart,algorithm,output.
Ans