Related Questions
What is the correct answer?
4
Pick out the most appropriate statement from the following
A. references are pointers
B. array of references can be created
C. you can not reference a reference variable
What is the correct answer?
4
A copy constructor is used to copy an object member wise to another object of the same class.
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
cc ___________ option is used only to create object file
What is the correct answer?
4
A direct access file is:
A. A file in which recoreds are arranged in a way they are inserted in a file
B. A file in which records are arranged in a particular order
C. Files which are stored on a direct access storage medium
What is the correct answer?
4
Overloaded functions
A. Are a group of functions with the same name
B. All have the same number and types of arguments
C. Make life simpler for programmer
D. May fail unexpectedly due to stress
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
We can make function inline by using the keyword 'inline'.
What is the correct answer?
4
The ?: can be used to replace
What is the correct answer?
4
Private data members can be accessed
A. Only from the base class itself
B. Both from the base class and form its derived classes
C. From the class which is a friend of the base class
D. None of the above is correct
What is the correct answer?
4
In a class, only the member function can access data, which is not accessible to outside. This feature is called:
What is the correct answer?
4
In C++, the keyword auto can be used for
A. Automatic assignment of data to object during instantiation
B. Automatic call of a function
C. To declare a local variable
D. It is not a keyword in C++
What is the correct answer?
4
Inline function specifier reduces the overheads associated with a normal function call.
What is the correct answer?
4
The binding that binds a function call at run time is called
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
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
A function that is called automatically when an object is created is known as
What is the correct answer?
4
The characteristic that data can be manipulated only through member functions that are part of the class is called
What is the correct answer?
4
When one object initializes another object the following function is invoked
What is the correct answer?
4
A destructor can have a return type.
What is the correct answer?
4
Protected members cannot be inherited.
What is the correct answer?
4
The member of a structure can be accessed through a pointer by
What is the correct answer?
4
Inline functions_____________ call overload.
C. None of the above are correct
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
_______ argument(s) are passed in case of unary overloaded operators.
What is the correct answer?
4
The members of a class by default are private.
What is the correct answer?
4
Data objects can be initialized when allocating memory using 'new'.
What is the correct answer?
4
this' pointer has to be used while accessing data members in a member function.
What is the correct answer?
4
Constructor returns void type value.
What is the correct answer?
4
Pick out the most appropriate statement
A. All variables must be declared before they are used
B. Variables in C++ need not be declared and the type can be assigned dynamically
C. Variables in C++ can be declared at the end of the program (before the main function terminates)
D. Variables can not be used explicitly in C++