-
Smart Pointers
What is Smart Pointer in C++?
-
Memory Allocation
Why is it suggested not to use malloc() or calloc() in C++ for memory allocation?
-
Program Crash
When can it happen that before calling main function itself program gets crashed?
-
Base Class Pointer with Derived Object
Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object, calling of that virtual method will result in which method being called?
-
Placement New Syntax
How can a C++ developer use the placement new syntax to make new allocate an object of class SomeClass at a particular memory address stored in a pointer type variable named pmem?A. new SomeClass(pmem);B. new(pmem) SomeClass;C. new SomeClass pmem;D. new pmem SomeClass;E. new (pmem, SomeClass);
-
Unary Postfix Operator Overloading
Which of the following statements accurately describe unary postfix operator++ overloading in C++?A. It can be overloaded with no parameters when the operator function is a class member.B. It can only be overloaded if the operator function is a class member.C. It can be overloaded with one parameter when the operator function is free standing function (not a class member).D. To overload it at least...
-
Write Object into a File
How will you write object into file using file concepts in C++?
-
Dynamic Binding
Why is Dynamic binding (regarding DLLs) are considered better in comparison with static binding? What are DLLs and how they work?
-
Using Inheritance
Using inheritance, which of the following is not alloweda) Changing implementation of operation in parent by the subclassb) Using implementation of operation in parent class by the subclassc) Using attributes in parent class by the subclassd) Having operations is subclass which do not exist in parent classe) None
-
Reverse A Linked List
What is the most efficient way to reverse a linklist?
-
static and friend function in a class
use of static and friend function in a class
-
Exception handling vs. return values to signal an error
Why we would use exception handling rather than different return values to signal an error?
-
-