MCQ Bank
which operator can be overloaded?
- A)
- B)
- C)
- D)
Complex codd (complex c1, complex c2); Which statement is true for above code?
- A) It accepts two complex numbers as parameters and returns back the resultant complex number.
- B)
- C)
- D)
Which of the following is assignment operator?
- A) =
- B)
- C)
- D)
which option will be correct in order to free the space of memory allocated to a buffer (buf)?
- A) Delete buf
- B)
- C)
- D)
How many objects are initialized for the class? Date myDates[10];
- A) 10
- B)
- C)
- D)
which statement about pointer is not true?
- A) pointer can be void
- B)
- C)
- D)
Representing logical depiction of the solution to the problem is known as a ________
- A) Structure
- B)
- C)
- D)
Which statement about manipulators is not true?
- A) it automatically gets that object as parameter passed in to the function
- B)
- C)
- D)
which of the following structure is correct for WHILE loop?
- A) While (condition)
- B)
- C)
- D)
which of the following is true about the switch statement?
- A) It cannot handle the compound conditions which use logical operators
- B)
- C)
- D)
If the condition is not made false in while loop, what will happen?
- A) Loop will become infinite
- B)
- C)
- D)
If a function does not return anything, its return type will be ________
- A) void
- B)
- C)
- D)
which of the following is the first step in FOR loop?
- A) Initialization condition
- B)
- C)
- D)
When we call a function and pass an argument, an object or variable to the function, it is called ?
- A) call by value
- B)
- C)
- D)
Stream insertion (<<) and extraction operators (>>) are always implemented as ________ function.
- A) Non-member
- B)
- C)
- D)
which of the following statement is not true about overloading stream extraction operator (>>)?
- A) it can be a member operator.
- B)
- C)
- D)
endl is a type of ________ manipulator.
- A) Parameterized less
- B)
- C)
- D)