Related Questions
What is the correct answer?
4
We can make function inline by using the keyword 'inline'.
What is the correct answer?
4
ios containes a pointer to streambuf.
What is the correct answer?
4
cc ___________ option is used only to create object file
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
Friend function have access to the
A. private and protected members
D. None of the above are correct
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
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
The exception is processed using
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
The break statement causes an exit
A. Only from the innermost loop
B. Only from the innermost switch
C. From all loops and switch
D. Only from the innermost loops or switch
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
What is the correct answer?
4
iostream is inheried from istream, ostream and ios class.
What is the correct answer?
4
Class is similar to a variable.
What is the correct answer?
4
In C++, an identifier must be initialized using constant expression.
What is the correct answer?
4
The binding that binds a function call at run time is called
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
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
What is the value of Friday in the following - enum days { Monday, Tuesday, Wednesday = -1, Thursday, Friday, Saturday = 6, Sunday}
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
You can read input that consists of multiple lines of text using
A. The normal cout<< combination
B. The cin.get() function with one argument
C. The cin.get() function with two argument
D. The cin.get() function with three argument
What is the correct answer?
4
_____________ operator must have one class object
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
By default, C++ uses the following method of passing arguments
What is the correct answer?
4
Scope resolution operator has the highest precedence.
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
One of the important features of an abstract class is
A. it need not have any object
B. it should be used only as a derived class
C. it need not have any members
What is the correct answer?
4
Constructor returns void type value.
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
A function that is called automatically when an object is created is known as
What is the correct answer?
4
The scope resolution operator is -