Related Questions
What is the correct answer?
4
Which of the following can legitimately be passed to a function?
What is the correct answer?
4
An object is an allocated space in memory.
What is the correct answer?
4
A base class is inherited by
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
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
iostream is inheried from istream, ostream and ios class.
What is the correct answer?
4
ios containes a pointer to streambuf.
What is the correct answer?
4
The new operator always returns a void pointer.
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
Scope resolution operator has the highest precedence.
What is the correct answer?
4
Inline functions_____________ call overload.
C. 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
We can make function inline by using the keyword 'inline'.
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 member functions have file scope.
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 is similar to a variable.
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
A copy constructor is used to copy an object member wise to another object of the same class.
What is the correct answer?
4
A constructor cannot be explicitly called.
What is the correct answer?
4
A class that contains at least one pure virtual function is called as
What is the correct answer?
4
main() returns a value of type
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
When accessing a structure member, the identifier to the left of the dot operator is the name of
What is the correct answer?
4
The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
What is the correct answer?
4
A destructor can have arguments like constructor.
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
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
The value of 'this' pointer can be changed.
What is the correct answer?
4
Classes are useful because they
A. Are removed from memory when not in use
B. Permit data to be hidden from other classes
C. Bring together all aspects of an entity in one place
D. Can closely model objects in the real world