On This Page

This set of Object Oriented Programming OOP Multiple Choice Questions & Answers (MCQs) focuses on Object Oriented Programming Set 2

Q1 | When arguments are passed by value, the function works with the original arguments in the calling program.
Q2 | Which of the following can legitimately be passed to a function?
Q3 | How many values can be returned from a function?
Q4 | When a function returns a value, the entire function call can appear on the right side of the equal sign and be assigned to another variable.
Q5 | When an argument is passed by reference
Q6 | Overloaded functions
Q7 | A static local variable is used to
Q8 | In C++ there can be an array of four dimensions.
Q9 | When an array name is passed to a function, the function
Q10 | The compiler will complain if you try to access array element 14 in a 10-element array.
Q11 | The extraction operator (>>) stops reading a string when it encounters a space.
Q12 | You can read input that consists of multiple lines of text using
Q13 | You should prefer C-strings to the Standard C++ string class in new programs.
Q14 | Objects of the string class
Q15 | Can destuctors be private in C++?
Q16 | What is value of size?
Q17 | What value will be printed for data.i?
Q18 | What is the compilation error for thisprogram?
Q19 | What will be the output of the program?
Q20 | What is the output of the program?
Q21 | Which function will change the state of the object?
Q22 | What will be the output of the following program?
Q23 | The only integer that can be assigned directly to a pointer is                    
Q24 | Which of the following feature is not supported by C++?
Q25 | The operators that cannot be overloaded is