Correct Answer:
Associativity
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Saved to the file
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
50
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Selection, bubble
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Constant integer expression, zero
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For loop.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Address
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Typedef
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Scope
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Repetition
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private members
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The header file iostream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
An object
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Flag
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Post-test.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The variable cannot be modified by any part of the code in the same application or thread. However, other threads may modify it.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
(*A).B
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The compiler needs the data type to know how much memory to allocate for the pointer, because different data types require different pointer lengths.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Inserting characters into an output stream like std::cout.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Bool is_even(float f); bool is_even(char *str);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A floating point number
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
To make the compiler parse that header file only once, even if it is included multiple times in the source
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The const qualifier Forbids the code to modify the argument, so the programmer can rest assured that the source object will remain unchanged.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both attempt to acquire a lock, but lock() blocks if the mutex is not available, whereas try_lock() returns whether the mutex is available or not.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It allows the programmer to write the necessary code to free the resources acquired by the object prior to deleting the object itself.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
CustomData operator++(int);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It writes the value 20 in every memory address from buff to buff+49.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
*(*((*A).B).C).D
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Delete(my_object);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Double
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The variable cannot be modified by any part of the code in the same application or thread. However, other threads may modify it.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
256
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
>> is parsed as the shift-right operator, and thus results in a compile error.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It causes the replacement of the #include directive by the entire contents of the source file library.h. This is similar to a Copy-Paste operation of library.h into main.cpp.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
By using extern "C"
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It is the pointer to member operator, and it allows you to access a member of an object through a pointer to that specific class member.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
C++ supports multiple inheritance.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Public members can be accessed by any function. Private members can be accessed only by the same class's member functions and the friends of the class.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
1/2 = 0.000000
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
C is 3 and d is A
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It is a pointer to a value with no specific type, so it may be cast to point to any type.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The first is the initialization block, the second is the condition to iterate, and the third is the increment block.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The first is a variable declaration that will hold an element in a sequence. The second is the sequence to traverse.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Y=x?a:b;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Class written with the generic programming paradigm, specifying behavior in terms of type parameter rather than specific type.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It specifies that the type of x will be deduced from the initializer - in this case, double.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It's an expression that represents an object with an address.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Classes may have member functions; structs are private.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
New
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The argument is passed as a reference, so if the passed my_array object is large, the program will require less time and memory.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Incrementing an iterator always means access the next element in the container(if any), no matter the container. Incrementing the pointer means pointing to the next element in memory, not always the next element.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
If the code uses a function defined in two different libraries with the same prototype but possibly with different implementations, there will be a compilation error due to ambiguity.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Actual; formal
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Post-test
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Resolution
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Info; link
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
When a new variable is created at runtime
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Loop
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Validators
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cast
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Temporary
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Abstract data types (ADTs)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Output
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Double
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
::
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Literals
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Ampersand ( & )
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Module variables
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Runtime_error
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Address of
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Attributes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Instantiation
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Strings
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Encourages code reuse
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Linear.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Divide by Zero
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Data declaration
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cell
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Number that indicates the position of an array element
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Strcat
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
From lowest to highest value
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Array.Sort
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
One.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Istream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
String
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Fstream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Interface file
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Overflow
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A declaration, but not a definition
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Temporary
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Square brackets.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Binary, linear.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of these.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Integer
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Remainder
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Int
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Endif
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Uses up all available stack memory, causing the program to crash
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Definition
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Coding
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Selection, bubble
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Scope
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Linear.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Sequential access
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Virtual.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Structured
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Underflow
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Variable.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The same
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Value
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
#include
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Member-wise
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Four
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
String literals
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Accumulator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Constructor, created
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Step
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Two or more
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Multidimensional arrays
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Reference object
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Promp Lines
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Member access
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Isdigit
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Namespace
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
<=operator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
String
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Scope
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Local
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Initialized, declared
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Overloaded
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Forward declaration
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Opened
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Fstream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Three
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Assigns an address to the variable ptr
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Indirectly
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The actual value of the variable whose address is stored in the pointer variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
-> operator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Nested
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A prioritized list of system requirements
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Base, derived
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Iostream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Kept separate from
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Deep
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The correct answer is: you must furnish an initialization list
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Dynamic
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Abstract data type
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Several identical arrays.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Infinite
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Data type
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Do...while loop
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
13
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Object
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Static
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Created with the new operator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
C
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Name
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Subscript
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Outputs a newline and flushes the output buffer
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Try
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
10
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Function header
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Relational
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Post test, pretest
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Nothing. Destructors have no return type.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
&&
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Members
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Dynamic binding
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Syntax rule violations
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Pointer
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Floor(x)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
&&
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Eleven characters and the null terminator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Top
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Relational operator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All the above are true
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Ampersand ( & )
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
==
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Depth
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Std::cin
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None of the answers are correct
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cout object
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Base, derived
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
++, --
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
May
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
That a variable of supertype can refer to a subtype object
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Derived, two or more
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Random access memory
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Memory cells
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Is-a
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Null terminator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False, they are declared using
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
::
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
'\0'
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
.(dot)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
& or ampersand
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Typedef
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Iostream header file
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Deep
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Catch(...){ }
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Static
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The loop body contains just one statement.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
8 bytes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Parameterized
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Null terminator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Standard operators
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Declared
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Initialized, declared
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Integers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Sorted
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Assignment
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Can
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Either by value or by reference
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Array
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Driver
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Linker
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Stub
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
May
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Function call
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Definition
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
~
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Destructor
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
One
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The header file iostream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
++ and --
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Unicode
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Begins with zero
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Function named main
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The row subscript of the element, the column subscript of the element
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Illegal in C++
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Initialization list
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Only 1
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Only one, only one
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Middle
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Public
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
'A'
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
setfill
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
class Upwork { public: Upwork(const char*){} explicit Upwork(long){} }; void f(Upwork) {} int main() { Upworkupw = "Upwork"; f("Upwork"); }
class Upwork { public: Upwork(const char*){} explicit Upwork(long){} }; void f(Upwork) {} int main() { Upworkupw(1+2); f(upw); }
class Upwork { public: Upwork(const char*); explicit Upwork(long); }; void f(Upwork) {} int main() { Upworkupw = "Upwork"; f("Upwork"); }
class Upwork { public: Upwork(const char*); explicit Upwork(long); }; void ::f(Upwork) {} int main() { Upworkupw = "Upwork"; f("Upwork"); }
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which function cannot be overloaded?
Correct Answer:
Virtual Function
Note: This Question is unanswered, help us to find answer for this one
Destructor calls are made in which order of the corresponding constructor calls?
Correct Answer:
Reverse order.
Note: This Question is unanswered, help us to find answer for this one
Which of the following is used to create an object by initializing it with an object of the same class that has been created previously?
Correct Answer:
Copy Constructor
Note: This Question is unanswered, help us to find answer for this one
Which of the following is NOT provided by the compiler by default?
Correct Answer:
Copy destructor
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following code? #include
Correct Answer:
58
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following code? #include
Correct Answer:
191
Note: This Question is unanswered, help us to find answer for this one
An operator '____' will allow you to delete memory allocated as an array which will ensure that every object in the array will receive a destructor call.
Correct Answer:
delete[]
Note: This Question is unanswered, help us to find answer for this one
C++ provides the ability to define _________ and ___________ as its primary encapsulation mechanisms.
Correct Answer:
Classes, functions
Note: This Question is unanswered, help us to find answer for this one
How many members does the below Freelancer class have? class Upwork { public: int freelancers; int jobs; int projects; private: double income; double costs; }; struct World { int inhabitants; double gdp; int countries; }; class Project { public: char* client; char* title; double hours; double rate; private: char* dialog; char* ip; }; class Freelancer : Upwork, World, Project { private: char* name; };
Correct Answer:
11
Note: This Question is unanswered, help us to find answer for this one
How can you declare a template?
Correct Answer:
template<>
Note: This Question is unanswered, help us to find answer for this one
When arguments are passed to a destructor it is call a '___' error.
Correct Answer:
Syntax
Note: This Question is unanswered, help us to find answer for this one
Which function prototype is VALID? (Choose all that apply)
Correct Answer:
int UpWork(int job = project());
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is correct?
Correct Answer:
The default value for an argument cannot be function call.
Note: This Question is unanswered, help us to find answer for this one
How to make the C/C++ source can be built for any architecture,select proper answer?
Correct Answer:
Use #ifdef/#endif macros within the source code like below #if defined(__i386__) // do something for 32bit ARCH #elif defined(__x86_64__) // do something for 64bit ARCH #endif
Note: This Question is unanswered, help us to find answer for this one
Study below codes and select proper answer? ifdef defined(__x86_64__) static inline unsigned long long rdtsc(void) { unsigned hi, lo; asm volatile ("rdtsc" : "=a"(lo), "=d"(hi)); return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 ); } elif defined(powerpc) static inline unsigned long long rdtsc(void) { unsigned long long int result=0; unsigned long int upper, lower,tmp; asm volatile( "0: \n" "\tmftbu %0 \n" "\tmftb %1 \n" "\tmftbu %2 \n" "\tcmpw %2,%0 \n" "\tbne 0b \n" : "=r"(upper),"=r"(lower),"=r"(tmp) ); result = upper; result = result<<32; result = result|lower; return(result); } endif
Correct Answer:
Read rdtsc register value for x86 and RAM data from address 0 for PowerPC architecture
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is correct?
Correct Answer:
Once a reference variable has been defined to refer to a particular variable it cannot refer to any other variable.
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is correct?
Correct Answer:
All arguments of an overloaded function can be default.
Note: This Question is unanswered, help us to find answer for this one
How many types of templates are there in C++?
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
Point out proper answer about the difference between below source codes for the execution of external commands if (fork() == 0) { execve(path, args, env); exit(1); } and FILE *fp = popen(path, “r”); if (fp) { pclose(fp); }
Correct Answer:
Execution context is different, one is executed within another thread and another is executed within the caller process
Same but different is related with the output from the execution result of
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following will compile, link and run OK in C++? (Choose all that apply.)
Correct Answer:
struct B{}; struct B1:B {}; struct B2:B{}; struct C{}; struct DD :B1, B2, private C{}; int main() { DD* p = new DD; }
struct B{}; struct B1:B {}; struct B2:B{}; struct C{}; struct DD :B1, B2, private C{}; int main() { DD* p = new DD; B1* pb = p; }
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What is the maximum number of elements that can be added to a linked list?
Correct Answer:
10
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are correct? Check all that apply.
Correct Answer:
The stdio.h header defines variable types, macros, and functions for performing input and output.
The stdlib.h header defines variable types, macros, and functions for performing general functions.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
27- Does an exception have to be caught in the same place where the try block created the exception?
Correct Answer:
No
it is possible to catch an exception anywhere in the call stack
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following are valid declarations or definitions of a pointer?
Correct Answer:
int* p1 = 0;
int* p2 = 2-2;
int* p6 = new int;
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are true about conversions in C++? (Choose all that apply.)
Correct Answer:
Any pointer to an object type can be implicitly converted to a void*.
When a floating-point is converted to an integer value, the fractional part is discarded.
Conversions from integer to floating types are as mathematically correct as the hardware allows.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Code will exhibit undefined behavio
What will be the result of calling the h() function in the following C++ code? const char* upwork[] = { "Freelancers", "Projects", "Fixed", "Hourly" } const char* f(inti) { return upwork[i]; } void g(string s){} void h() { const string& r = f(0); g(f(1)); string s = f(2); cout<< "f(3): " << f(3) << " s: " << s << " r: " << r << '\n'; }
Correct Answer:
f(3): Hourly s: Fixed r: Freelancers
Note: This Question is unanswered, help us to find answer for this one
Consider the following code: <font size=2> template<class T> void Kill(T *&objPtr) { delete
objPtr; objPtr = NULL; } class MyClass { }; void Test() { MyClass *ptr = new MyClass();
Kill(ptr); Kill(ptr); } </font> Invoking Test() will cause which of the following?
Correct Answer:
Code will execute properly
Note: This Question is unanswered, help us to find answer for this one
Cannot read /proc//mem file even with root privilege due to permission error. How to solve it? intmem_file = open(“/proc/12345/mem”, O_RDONLY); // returns permission error
Correct Answer:
Have to send SIGSTOP/SIGCONT like below Kill(12345, SIGSTOP) intmem_file =
open(“/proc/12345/mem”, O_RDONLY); … close(mem_file); kill(12345, SIGCONT);
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the correct way to declare a function as constant?
Correct Answer:
funcshowData(void) const { }
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the better way to implement mathematical matrix operation such as plus, minus and multiply with C++? A- Define matrix operation functions like below. Matrix Matrix :: pls(Matrix mat1, Matrix mat2); Matrix Matrix :: min(Matrix mat1, Matrix mat2); Matrix Matrix :: mlt(Matrix mat1, Matrix mat2); B- Override operators like below Matrix Matrix :: operator +(Matrix m2) Matrix Matrix :: operator -(Matrix m2) Matrix Matrix :: operator *(Matrix m2)
Correct Answer:
B
Note: This Question is unanswered, help us to find answer for this one
Reference is like a ____.
Correct Answer:
Pointer
Note: This Question is unanswered, help us to find answer for this one
What is the value of a following the below sequence of C++ statements? int a = 7; int& r = a; r = 8;
Correct Answer:
8
Note: This Question is unanswered, help us to find answer for this one
Consider the following C++ definition: int* x = 0; Which of the following expressions refers to the location of the variable x in memory?
Correct Answer:
&x
Note: This Question is unanswered, help us to find answer for this one
What does the following code? while (numforks<maxf) { pid_tpid = fork(); if (pid == 0) { //do something exit(1); } else { numforks++; } while (numforks>= maxf) { wait(NULL); numforks--; } }
Correct Answer:
Creates Maximum maxf child processes and wait until they are finished
Note: This Question is unanswered, help us to find answer for this one
Which operator is used to deallocate the memory?
Correct Answer:
None of the above.
Note: This Question is unanswered, help us to find answer for this one
Which of the following you can use pass an array object to a function?
Correct Answer:
void SomeFunction(Array
Note: This Question is unanswered, help us to find answer for this one
union U { int x; double d; }; int main() { U a; a.x = 7; a.d = 7.7; int y = a.x; // <------ breakpoint placed here } What is the value held by a.x when the above breakpoint is reached?
Correct Answer:
uninitialized
Note: This Question is unanswered, help us to find answer for this one
When your program allocates memory on the free store, a _____ is returned?
Correct Answer:
pointer
Note: This Question is unanswered, help us to find answer for this one
What is the output of following code? #include <iostream> using namespace std; void Upwork(); int main() { try { Upwork(); } catch(double) { cerr<< "Projects" <<endl; } return 0; } void Upwork() { throw 3; }
Correct Answer:
Running the code gives an unhandled exception.
Note: This Question is unanswered, help us to find answer for this one
How many members does the below Freelancer class has? class Upwork { public: int freelancers; int jobs; int projects; private: double income; double costs; }; struct World { int inhabitants; double gdp; int countries; }; class Project { public: char* client; char* title; double hours; double rate; private: char* dialog; char* ip; }; class Freelancer : Upwork, World, Project { private: char* name; };
Correct Answer:
15
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following program? #include <iostream> using namespace std; int main() { char* upwork; try { upwork = new char[1024]; if (upwork == 0) throw "Projects"; else cout<<sizeof(upwork) << "Freelancers"<<endl; } catch(char *strg) { cout<<"Feedback"<<strg<<endl; } return 0; }
Correct Answer:
It depends on the size of the data type.
Note: This Question is unanswered, help us to find answer for this one
What is a template?
Correct Answer:
A template is a formula for creating a generic class.
Note: This Question is unanswered, help us to find answer for this one
C++ ____ for local variables are called at the end of the object lifetime?
Correct Answer:
Classes
Note: This Question is unanswered, help us to find answer for this one
What does the function objects implement?
Correct Answer:
operator()
Note: This Question is unanswered, help us to find answer for this one
Function overloading is an example of ___?
Correct Answer:
polymorphism
Note: This Question is unanswered, help us to find answer for this one
Compare below source codes and tell which one is better?
A) intscan_buffer(char *buffer, intbuffer_size) { // serach malware patterns for(inti = 0; i< PATN_CNT; i++) { intlen = strlen(malware_pattern[i]); for (int j = 0; j <buffer_size - len; j++) { for (int k = 0; k <len; k++){ if ((char)buffer[j+k] != (char)malware_pattern[i][k]) break; } // found malware pattern if (k == len) return 1; } } return 0; } B) intscan_buffer(char *buffer, intbuffer_size) { // serach malware patterns for(inti = 0; i< PATN_CNT; i++) { intlen = strlen(malware_pattern[i]); for (int j = 0; j <buffer_size - len; j++) { if (strstr(buffer, (void*) malware_pattern[i]) != NULL) { // found malware pattern return 1; } } } return 0; }
Correct Answer:
B) function is better
Note: This Question is unanswered, help us to find answer for this one
Which symbol is used to declare the preprocessor directives?
Correct Answer:
#
Note: This Question is unanswered, help us to find answer for this one
A reference is declared using ___ symbol?
Correct Answer:
&
Note: This Question is unanswered, help us to find answer for this one
Which of the following is a valid statement regarding cin.read()?
Correct Answer:
Reads n bytes (or until the end of the file) from the stream into the buffer.
Note: This Question is unanswered, help us to find answer for this one
Functions can be declared to return a reference type. Which of the following are correct reasons to make such a declaration? (Choose all that apply)
Correct Answer:
The information being returned is a large enough object that returning a reference is more efficient than returning a copy.
The type of the function is an rvalue.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
A reference is stored on ___.
Correct Answer:
stack.
Note: This Question is unanswered, help us to find answer for this one
What is the output if following code executed? include using namespace std; namespace fun1 { int a = 6; } namespace fun2 { int a = 11; } int main(int argc, const char * argv[]) { int a = 10; fun1::a; fun2::a; cout << a; return 0; }
Correct Answer:
10
Note: This Question is unanswered, help us to find answer for this one
Which operator is used to resolve the scope of the global variable?
Correct Answer:
::
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is correct about the references?
Correct Answer:
A reference must always be initialized.
Note: This Question is unanswered, help us to find answer for this one
How many adapters support the checked iterators?
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
What are the names of default standard streams in C++?
Correct Answer:
cin
cout
cerr
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following is TRUE? (Choose all that apply)
Correct Answer:
Changing a reference changes the referent.
Note: This Question is unanswered, help us to find answer for this one
Which of the following is true? (Choose all that apply)
Correct Answer:
Once a variable and a reference are linked, they are tied together.
A global variable can be returned by reference.
A local variable may not be returned by reference.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What is the output of following program? #include <iostream> using namespace std; int main() { int i, j; j = 0; i = (j++, j + 1, 2 + j); cout << i; return 0; }
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following? #include <iostream> using namespace std; int main () { int x, y; x = 1; y = ++x * ++x; cout << x << y; x = 1; y = x++ * ++x; cout << x << y; return 0; }
Correct Answer:
3933
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following code:- #include <iostream> using namespace std; int main() { int a = 1, b = 2, c, d; c = a, b; d = (a, b); cout << c << ' ' << d; return 0; }
Correct Answer:
1 2
Note: This Question is unanswered, help us to find answer for this one
Which of the following gets called when an object goes out of scope?
Correct Answer:
Destructor
Note: This Question is unanswered, help us to find answer for this one
Which of the following access specifier is used in a class definition by default?
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is incorrect?
Correct Answer:
The default arguments are given in the function prototype and should be repeated in the function definition.
Note: This Question is unanswered, help us to find answer for this one
To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator ___.
Correct Answer:
delete[]
Note: This Question is unanswered, help us to find answer for this one
What is a function template?
Correct Answer:
creating a function without having to specify the exact type.
Note: This Question is unanswered, help us to find answer for this one
Which of the following type of data member can be shared by all instances of a class?
Correct Answer:
static
Note: This Question is unanswered, help us to find answer for this one
Which of the following keywords is used to control access to a class member?
Correct Answer:
Protected
Note: This Question is unanswered, help us to find answer for this one
How many objects can be created from an abstract class?
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements is/are correct?
Correct Answer:
A constructor of a derived class can access any public and protected member of the base class.
Constructor cannot be inherited but the derived class can call them.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following is true about destructors?
Correct Answer:
A destructor has no return type.
Note: This Question is unanswered, help us to find answer for this one
Destructor has the same name as constructor and it is preceded by ___?
Correct Answer:
~
Note: This Question is unanswered, help us to find answer for this one
If a copy constructor receives its arguments by-value, the copy constructor will ____.
Correct Answer:
call itself recursively.
Note: This Question is unanswered, help us to find answer for this one
A constructor that accepts ____ parameters is called default constructor.
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Which constructor function is designed to copy objects of the same class type?
Correct Answer:
copy constructor
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are correct? (Choose all that apply)
Correct Answer:
Constructor has the same name as that of the class.
Destructor has the same name as that of the class with a tilde symbol at the beginning.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What does container adapter provide to interface?
Correct Answer:
Restricted interface
Note: This Question is unanswered, help us to find answer for this one
Which of the following is true in relation to destructors for automatic objects if a program terminates with a call to a function exit?
Correct Answer:
They are not called.
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a type of constructor?
Correct Answer:
Friend constructor
Note: This Question is unanswered, help us to find answer for this one
Void pointer can point to which type of objects?
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
How many default constructors per class are possible?
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
Which is used to create a pure Virtual function?
Correct Answer:
=0
Note: This Question is unanswered, help us to find answer for this one
To which type of class we can apply RTTI?
Correct Answer:
Polymorphic
Note: This Question is unanswered, help us to find answer for this one
The pointer which stores the current active object address is ___
Correct Answer:
this
Note: This Question is unanswered, help us to find answer for this one
Copy constructor must receive its arguments by ___?
Correct Answer:
only pass-by-reference
Note: This Question is unanswered, help us to find answer for this one
Which of the following members are not accessed by using the direct member access operator?
Correct Answer:
protected
Note: This Question is unanswered, help us to find answer for this one
The stream ‘cout’ is by default connected to console output ___.
Correct Answer:
Device
Note: This Question is unanswered, help us to find answer for this one
Which of the following storage classes are supported in C++?
Correct Answer:
auto and static
extern
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which operator is used to allocate memory?
Correct Answer:
new
Note: This Question is unanswered, help us to find answer for this one
Runtime polymorphism is achieved only when a virtual function is accessed through a ____ to the base class.
Correct Answer:
Pointer
Note: This Question is unanswered, help us to find answer for this one
How many number of arguments can a destructor of a class receives?
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
What happens when a handler is not found for a given exception?
Correct Answer:
A call is made to the standard library function terminate().
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a member of a class?
Correct Answer:
Friend function
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is correct? (Choose all that apply)
Correct Answer:
C++ permits the defining of functions taking constants as an argument.
Where function arguments are declared as constant, these arguments can not be changed.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are true? (Choose all that apply.)
Correct Answer:
The expression ... p -> m ... is equivalent to ... (*p).m
The expression ... p[x] .... is equivalent to ... *(p+x)
The expression ... v++ ... is equivalent to ... v+=1
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following are TRUE? (Choose all that apply)
Correct Answer:
Default arguments can be provided for pointers to functions.
A function cannot have all its arguments as default.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following types of inheritance supported in C++?
Correct Answer:
Single
Multilevel
Multiple
Hierarchical
Hybrid
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Consider the sample code given below and answer the question that follows.
class Outer
{
public:
class Inner
{
int Count;
public:
Inner(){};
};
};
int main()
{
Inner innerObject;
Outer outObject;
return 0;
}
What will be the result when the above code is compiled?
Correct Answer:
There will be an error because in the declaration of innerObject the type Inner must be qualified by Outer
Note: This Question is unanswered, help us to find answer for this one
Consider the sample code given below and answer the question that follows.
class Person
{
public:
Person();
virtual ~Person();
};
class Student : public Person
{
public:
Student();
~Student();
};
main()
{
Person *p = new Student();
delete p;
}
Why is the keyword "virtual" added before the Person destructor?
Correct Answer:
To ensure that correct destructor is called when p is deleted
Note: This Question is unanswered, help us to find answer for this one
Consider the following code:
#include<iostream>
using namespace std;
class A
{
public:
A()
{
cout << "Constructor of A\n";
};
~A()
{
cout << "Destructor of A\n";
};
};
class B
{
public:
B()
{
cout << "Constructor of B\n";
};
~B()
{
cout << "Destructor of B\n";
};
};
class C
{
public:
A objA;
B objB;
};
int main()
{
C *pC;
pC = new C();
delete pC;
return 0;
}
What will be the printed output?
Correct Answer:
Constructor of A
Constructor of B
Destructor of B
Destructor of A
Note: This Question is unanswered, help us to find answer for this one
What will happen when the following code is compiled and executed?
#include<iostream>
using namespace std;
class myclass
{
private:
int number;
public:
myclass()
{
number = 2;
}
int &a()
{
return number;
}
};
int main()
{
myclass m1,m2;
m1.a() = 5;
m2.a() = m1.a();
cout << m2.a();
return 0;
}
Correct Answer:
The printed output will be 5
Note: This Question is unanswered, help us to find answer for this one
Which of the following member functions can be used to add an element in
an std::vector?
Correct Answer:
push_back
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following code?
class A
{
public:
A():pData(0){}
~A(){}
int operator ++()
{
pData++;
cout << "In first ";
return pData;
}
int operator ++(int)
{
pData++;
cout << "In second ";
return pData;
}
private:
int pData;
};
void main()
{
A a;
cout << a++;
cout << ++a;
}
Correct Answer:
In second 1 In first 2
Note: This Question is unanswered, help us to find answer for this one
If input and output operations have to be performed on a file, an object of
the _______ class should be created.
Correct Answer:
fstream
Note: This Question is unanswered, help us to find answer for this one
Which of the following STL classes is deprecated (i.e should no longer be
used)?
Correct Answer:
ostrstream
Note: This Question is unanswered, help us to find answer for this one
which of the following is true.
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
No, var1 and var2 are not functions but are variables
Correct Answer:
ad
fail
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
In the given sample Code, is the constructor definition valid?
class someclass
{
int var1, var2;
public:
someclass(int num1, int num2) : var1(num1), var2(num2)
{
}
};
Correct Answer:
Yes, it is valid
Note: This Question is unanswered, help us to find answer for this one
Consider the following class hierarchy:
class Base
{ }
class Derived : public Base
{ }
Which of the following are true?
Correct Answer:
Derived can access public and protected member functions of
Base
The following line of code is valid:
Base *object = new Derived();
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Consider the sample code given below and answer the question that
follows.
class A
{
public:
A() {}
~A()
{
cout << "in destructor" << endl;
}
};
void main()
{
A a;
a.~A();
}
How many times will "in destructor" be output when the above code is
compiled and executed?
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following code segment?
int n = 9;
int *p;
p=&n;
n++;
cout << *p+2 << "," << n;
Correct Answer:
12,10
Note: This Question is unanswered, help us to find answer for this one
Which of the following are true about class and struct in C++:
Correct Answer:
A class can have inheritance but a struct cannot
In a class all members are private by default, whereas in struct
all members are public by default
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements about constructors and destructors are
true?
Correct Answer:
Constructors can take parameters, but destructors cannot
It is illegal to define a constructor as virtual
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
You want the data member of a class to be accessed only by itself and by
the class derived from it. Which access specifier will you give to the data
member?
Correct Answer:
Protected
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a standard STL header?
Correct Answer:
<array>
Note: This Question is unanswered, help us to find answer for this one
Consider the sample code given below and answer the question that
follows.
template <class T> Run(T process);
Which one of the following is an example of the sample code given above?
Correct Answer:
A template function declaration
Note: This Question is unanswered, help us to find answer for this one
Consider the sample code given below and answer the question that
follows.
class SomeClass
{
int x;
public:
SomeClass (int xx) : x(xx) {}
};
SomeClass x(10);
SomeClass y(x);
What is wrong with the sample code above?
Correct Answer:
The code will compile without errors
Note: This Question is unanswered, help us to find answer for this one
Consider the following statements relating to static member functions and
choose the appropriate options:
1. They have external linkage
2. They do not have 'this' pointers
3. They can be declared as virtual
4. They can have the same name as a non-static function that has the
same argument types
Correct Answer:
Only 1 and 2 are true
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following code?
class b
{
int i;
public:
virtual void vfoo()
{
cout <<"Base ";
}
};
class d1 : public b
{
int j;
public:
void vfoo()
{
j++;
cout <<"Derived";
}
};
class d2 : public d1
{
int k;
};
void main()
{
b *p, ob;
d2 ob2;
p = &ob;
p->vfoo();
p = &ob2;
p->vfoo();
}
Correct Answer:
Base Derived
Note: This Question is unanswered, help us to find answer for this one
Consider the line of code given below and answer the question that follows.
class screen;
Which of the following statements are true about the class declaration
above?
Correct Answer:
The syntax is correct
Note: This Question is unanswered, help us to find answer for this one
Which of the following is NOT a standard sorting algorithm:
Correct Answer:
std::qsort
Note: This Question is unanswered, help us to find answer for this one
What does ADT stand for?
Correct Answer:
Abstract data type
Note: This Question is unanswered, help us to find answer for this one
In C++, the keyword auto can be used for:
Correct Answer:
Declaration of a local variable
Note: This Question is unanswered, help us to find answer for this one
In C++, the keyword auto can be used for:
Correct Answer:
vector::erase can be used to delete a single element and a
range of elements of the vector
After calling, vector::erase causes some of the iterators
referencing the vector to become invalid
vector::size returns the number of elements in the vector
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements about function overloading, is true?
Correct Answer:
The parameter lists and const keyword are used to distinguish
functions of the same name declared in the same scope
Note: This Question is unanswered, help us to find answer for this one
Consider the sample code given below and answer the question that
follows.
class Person
{
string name;
int age;
Person *spouse;
public:
Person(string sName);
Person(string sName, int nAge);
Person(const Person& p);
Copy(Person *p);
Copy(const Person &p);
SetSpouse(Person *s);
};
Which one of the following are declarations for a copy constructor?
Correct Answer:
Person(const Person &p);
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are true for operator overloading in C++?
Correct Answer:
The * operator can be overloaded to perform division
The * operator can be overloaded to perform assignment
Operators can be overloaded globally
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What linkage specifier do you use in order to cause your C++ functions to
have C linkage
Correct Answer:
extern "C"
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements regarding functions are false?
Correct Answer:
You can create arrays of functions
Note: This Question is unanswered, help us to find answer for this one
A pure virtual function can be declared by _______.
Correct Answer:
equating it to 0
equating it to NULL
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Consider the following code:
class Animal
{
private:
int weight;
public:
Animal()
{
}
virtual void Speak()
{
cout << "Animal speaking";
}
};
class Snake : public Animal
{
private:
int length;
public:
Snake()
{
}
void Speak()
{
cout << "Snake speaking\r\n";
}
};
int main()
{
Animal *array = new Snake[10];
for (int index= 0; index < 10; index++)
{
array->Speak();
array++;
}
return 0;
}
What happens when the above code is compiled and executed?
Correct Answer:
The code will crash at runtime
Note: This Question is unanswered, help us to find answer for this one
Which of the following is a predefined object in C++ and used to insert to the standard error output?
Correct Answer:
std::ce
Note: This Question is unanswered, help us to find answer for this one
Which of the following are true about class member functions and constructors?
Correct Answer:
A member function can return values but a constructor cannot
Note: This Question is unanswered, help us to find answer for this one
Which of the following sets of functions do not qualify as overloaded functions?
Correct Answer:
void x(int,char)
int *x(int,char)
Note: This Question is unanswered, help us to find answer for this one
If a matching catch handler (or ellipsis catch handler) cannot be found for the current exception, then the following predefined runtime function is called ______.
Correct Answer:
terminate
Note: This Question is unanswered, help us to find answer for this one
Consider the following code:
#include<iostream>
using namespace std;
int main()
{
cout << "The value of __LINE__ is " <<__LINE__;
return 0;
}
What will be the result when the above code is compiled and executed?
Correct Answer:
The code will compile and run without errors
Note: This Question is unanswered, help us to find answer for this one
Which of the following operators cannot be overloaded?
Correct Answer:
.
::
?:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following code?
#include<iostream>
using namespace std;
class b
{
int i;
public:
void vfoo()
{ cout <<"In Base "; }
};
class d : public b
{
int j;
public:
void vfoo()
{
cout<<"In Derived ";
}
};
void main()
{
b *p, ob;
d ob2;
p = &ob;
p->vfoo();
p = &ob2;
p->vfoo();
ob2.vfoo();
}
Correct Answer:
In Base In Base In Derived
Note: This Question is unanswered, help us to find answer for this one
Unary operator overloaded by means of a friend function takes one reference argument.
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ostrstream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
When an object of MyClass is passed by value to a function
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Base Exception
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Macro usage should be avoided because they are error prone
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Protected
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
No difference, they are equivalent
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Depends on the target platform and implementation
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
No, friend declarations are not transitive
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
undefined
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Array
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Writes the contents of x to stdout
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4, 4, 4, 4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
There is no C++ rule about placing curly brackets
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
myItem->units
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Your program uses cout function calls
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Tells the preprocessor to include the iostream standard file
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The handler will catch any type of error thrown
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
At the first call of foo()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of these are permitted
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
friend myClass myFunction(myClass);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Null pointer
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Elements of a class are private by default
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Sets p to nullptr
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
B::x()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
aString.substr(6,5);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
This is invalid code in C++
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Hello World!
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
void myfunction(int& a, int& b)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
printmsg();
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
void myfunction(int a=2)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Explicit and Implicit
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
myNamespace::a
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Vectors can be dynamically resized, but an array's size is fixed
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Distance operator+(Distance a, Distance b);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
void myFunction (int& a, int& b, int& c)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Main function
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Semi-colon (;)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Data Types
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
C
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
i = i + 5;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Hash Symbol (#)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Function overloading
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Memory heap
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Array
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The sizeof of an array gives the number of elements in the array, but sizeof of a pointer gives the actual size of a pointer variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
String concatenation
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Initialize a vector with 1 element of the value 5
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It is used to avoid multiple copies of base class in derived class.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
By making at least one member function as pure virtual function.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
"x" was not declared in this scope.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Template classes are primarily used as base classes for other derived classes.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
an asterisk (*) immediately before a variable name dereferences a pointer giving you its value when that variable has already been declared.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Global variables are usually a bad choice as they more often cause memory leaks than locally scoped variables.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Memory is allocated and then goes out of scope before it is released.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
istream & istream::operator >> ( streambuf & )
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
stack, queue, priority_queue
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The function may be called on a const qualified object, and treats the object as const qualified.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Defines the structure dereference operator for a class
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It ensures that foo's mangled link name matches that of the C compiler so it can be called from C functions.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
/* means the start of comments.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
char32_t
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
void my_lock::lock() { int exp(1); while (!data.compare_exchange_strong(exp, 0)) exp = 1; }
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None of these.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes, it will compile.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It won't compile
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
public
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
false true true
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0x000C45710
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
At least 4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
This code is not valid C++
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
var != var
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Any one of the specified choices fixes compilation error
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
12
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Always
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Front of the queue
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
AB
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
to not get multiple ambiguous copies of members of ancestor classes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
compilation error
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
In header: extern std::atomic
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Constructs a sorted union of the elements from two ranges.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ff
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
weak_ptr(T *r) noexcept;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
int * const x = &y;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
std::bad_function_call
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
shape::move shape::move shape::move
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
both s and g are modifiable pointers to an immutable string
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
. (dot)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
foo
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
first
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
implementation defined
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
B does not inherit access to x from A.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0,8,2,6,4,5,3,7,1,9
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
std::move(x)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
10,11,12,13,14,15,16,17,18,19
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
no output; program is ill-formed
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
This is undefined behavior
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
none, the code wont compile
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes, placement new does this.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Compile error: malformed attribute.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Nothing, void doesn't have a size.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
O(log(n))
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A bit field structure declaration.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
42
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
C is defined to be a constant member function pointer of class B taking arguments of types D and E, returning type A.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
at is always bounds checked. operator[] is not.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
hash_table
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Infinite loop.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Depends
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A union is the size of its largest data member whereas the size of a struct is at least the sum of the size of the struct data members
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None, that is an invalid mix of types.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
++i
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The size of the compiled binary increases
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
a backslash (\)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
color::blue
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0 to 4,294,967,295
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
No.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
prevent external access to declarations local to a compilation unit
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Parent::foo();
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
absence of a type for the pointer.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
bool is_odd = [](int n) {return n%2==1;};
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
?
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
delete[] a;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
O(1)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A class member function that you expect to be redefined in derived classes.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It prevents a single-argument constructor from being used in an implicit conversion
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
This code has undefined behavior
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
auto
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Struct and class data members are allocated in memory sequentially whereas a union is allocated enough memory for the largest data member only
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
a wide character string
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
fstream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both of the other answers are correct.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
None, they are equivalent.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
7
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Structs have public privacy by default, classes use private.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The function must be defined inside the class.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Nothing, that is not a valid C++ expression.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The same directory that includes the file containing the directive.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Initializes a vector with 5 elements of value 0.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Declares a pure virtual function.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
shape::move circle::move rectangle::move
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It tells the preprocessor to include the iostream standard file.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
m_test
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
alternate names for existing types in C++.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
myItem->units
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
unknown_cast
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
address of a
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It will declare a new variable a and set it to 97 (assuming a machine that uses ASCII).
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4,4,4,4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The members of a class are private by default, and the members of a struct are public by default.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
returns the size in bytes of arg
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
can be accessed by all objects of the same class.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
all of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
all of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
printmsg();
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The number of integer elements the array shall hold.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
a leading //.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The value of a cannot change from 50.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Both of these
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
a = &b;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
char
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
void myfunction()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
if( (sum == 10) && (total < 20) )printf(
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
real
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
::
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
wide
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
stop when loop
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
int x;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
void myFunction( int a, int b)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Semi-colon (;)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
int a, b, c;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
function overloading.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
true
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
public
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It's depend of double implementation, usually not exactly zero.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Object-Oriented Design
Note: This Question is unanswered, help us to find answer for this one
C++ MCQs | Topic-wise