Related Questions
What is the correct answer?
4
We can make function inline by using the keyword 'inline'.
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
Class members are _______________ by default
D. None of the above are correct
What is the correct answer?
4
Data objects can be initialized when allocating memory using 'new'.
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
_______ argument(s) are passed in case of binary overloaded operators.
What is the correct answer?
4
The binding that binds a function call at run time is called
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
By using protected, one can create class members that are private to their class but
A. that can not be inherited and accessed by a derived class
B. that can still be inherited and accessed by a derived class
What is the correct answer?
4
Friend function have access to the
A. private and protected members
D. None of the above are correct
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
An object is an allocated space in memory.
What is the correct answer?
4
Scope resolution operator has the highest precedence.
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
Element double Array[7] is which element of the array?
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
The members of a class can be made private by
A. declaring them private
B. by default they are private
C. by declaring them in the beginning of the program immediately after main()
D. they are always public
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 created is known as
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
By default, members cannot be inherited.
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
When you overload an arithmetic assignment operator, the result
A. Goes in the object to the right of the operator
B. Goes in the object to the left of the operator
C. Goes in the object of which the operator is a member
What is the correct answer?
4
iostream is inheried from istream, ostream and ios class.
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
_____________ operator must have one class object
What is the correct answer?
4
The scope resolution operator is -
What is the correct answer?
4
Static member functions have file scope.
What is the correct answer?
4
Static data member can be declared as const too.
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++