Related Questions
What is the correct answer?
4
The string table in C++ holds the
A. string constants in your program
B. program statements in string form
C. variables whose type is of string
What is the correct answer?
4
Element double Array[7] is which element of the array?
What is the correct answer?
4
The signature of a function is
B. The number and type of arguments
C. The class of a function
What is the correct answer?
4
A constructor cannot be explicitly called.
What is the correct answer?
4
Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
What is the correct answer?
4
Class members are _______________ by default
D. None of the above are correct
What is the correct answer?
4
Reference to an object behaves like a constant pointer.
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
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
When a language has the capacity to produce new data type, it is said to be
What is the correct answer?
4
An object is an allocated space in memory.
What is the correct answer?
4
iostream is inheried from istream, ostream and ios class.
What is the correct answer?
4
Constructor returns void type value.
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
Protected 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
Inline function specifier reduces the overheads associated with a normal function call.
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
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
Sharing of common information are achieved by the concept of
What is the correct answer?
4
The declaration int **var1; shows that
A. var1 can not be accessed
B. var1 is a pointer to a pointer of type int
C. var1 is a protected data type of integer
D. this type declaration shows an error
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
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++
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
Which of the following can legitimately be passed to a function?
What is the correct answer?
4
Member function cannot be called from within a constructor.
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++, 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
A destructor can have arguments like constructor.
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