Related Questions
What is the correct answer?
4
A variable defined within a block is visible
A. From the point of definition onwards in the program
B. From the point of definition onwards in the function
C. From the point of definition onwards in the block
D. Throughout the function
What is the correct answer?
4
In C++, the exception handler is invoked with a-
What is the correct answer?
4
Which of the following is not a component of file system
B. Auxiliary storage management
C. Free integrity mechanism
What is the correct answer?
4
this' is an implicit pointer.
What is the correct answer?
4
The ?: can be used to replace
What is the correct answer?
4
main() returns a value of type
What is the correct answer?
4
Public data members can be accessed
A. Only from the base class itself
B. Both form the base class and from its derived classes
C. From the class which is friend of the base class
D. None of the above are correct
What is the correct answer?
4
One of the major disadvantage with late binding is
A. the source code should be made available at compile time
B. the program runs slower
C. dynamic variables can not be used in the program
D. static variables can not be used
What is the correct answer?
4
Sharing of common information are achieved by the concept of
What is the correct answer?
4
A destructor can have a return type.
What is the correct answer?
4
Scope resolution operator has the highest precedence.
What is the correct answer?
4
We can make function inline by using the keyword 'inline'.
What is the correct answer?
4
If a friend function is declared inside a class it can access all data members of the class.
What is the correct answer?
4
In C++, identifiers have to be declared at the beginning of the blocks.
What is the correct answer?
4
The getch() library function
A. Returns a character when any key is pressed
B. Returns a character when ENTER is pressed
C. Display a character on the screen when a key is pressed
D. Does not display a character on the screen
What is the correct answer?
4
A function that is called automatically when an object is destroyed is known as
What is the correct answer?
4
_______ argument(s) are passed in case of binary overloaded operators.
What is the correct answer?
4
Private members of a structure can be accessed directly from the outside of the structure.
What is the correct answer?
4
Static data member can be declared as const too.
What is the correct answer?
4
Delete operator is used
C. To delete variable name
D. None of the above are correct
What is the correct answer?
4
When a language has the capacity to produce new data type, it is said to be
What is the correct answer?
4
The library function exit() causes an exit from
A. The loop in which it occurs
B. The block in which it occurs
C. The function in which it occurs
D. The program in which it occurs
What is the correct answer?
4
It is possible to allow non member function access to private members of a class by declaring it as
What is the correct answer?
4
"[]" Operator is a unary operator.
What is the correct answer?
4
In a for loop with a multi-statement loop body, semicolons should appear following
A. The for statement itself
B. The closing brace in a multi-statement loop body
C. Each statement within the loop body.
What is the correct answer?
4
What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout <<i<<"
";
D. there is an error in the program
What is the correct answer?
4
new operator is used
A. To dynamically allocate storage
B. To statically allocate storage
C. To allocate storage for a new variable
D. None of the above are correct
What is the correct answer?
4
The member of a structure can be accessed through a pointer by
What is the correct answer?
4
Objects get destroyed in the reverse order as they are created.
What is the correct answer?
4
Class members are _______________ by default
D. None of the above are correct