MCQ Bank
Function declaration is a one-line statement in which we write the return type, ________ of the function and the ________ of arguments
- A)
- B)
- C)
- D)
Which of the following option gives the value stored at the address pointed to by the pointer "ptr"?
- A)
- B)
- C)
- D)
in C++, cout is known as ________
- A)
- B)
- C)
- D)
Which of the following is not a file opening mode?
- A)
- B)
- C)
- D)
________ statement is necessary in switch structure.
- A)
- B)
- C)
- D)
Normally, the float data type is half of the size of ________
- A)
- B)
- C)
- D)
which of the following option is used when working with completed expression in c++?
- A)
- B)
- C)
- D)
A binary operator has ________ operands.
- A)
- B)
- C)
- D)
which of the following is the default function calling mechanism of C/C++?
- A)
- B)
- C)
- D)
which function is automatically called when an object of a class is initialized?
- A)
- B)
- C)
- D)
In C++, which of the following option is used to declare a class?
- A)
- B)
- C)
- D)
in C++ which of the following function causes the full definition of the function to be inserted in each place when it gets called?
- A)
- B)
- C)
- D)
Bool data type takes ________ values.
- A)
- B)
- C)
- D)
In the syntax of the overloaded operator function given below: Complex operator + (Complex &); What is operator?
- A)
- B)
- C)
- D)
which operator can be overloaded?
- A)
- B)
- C)
- D)
Complex codd (complex c1, complex c2); Which statement is true for above code?
- A)
- 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)
- B)
- C)
- D)
How many objects are initialized for the class? Date myDates[10];
- A)
- B)
- C)
- D)
which statement about pointer is not true?
- A)
- B)
- C)
- D)