Object Oriented Programming (OOP) MCQs | Page - 3
Dear candidates you will find MCQ questions of Object Oriented Programming (OOP) here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Q. In an assignment statement, the value on the left of the equal sign is always equal to the value on the right.
β
Correct Answer: (B)
false
Q. It’s perfectly all right to use variables of different data types in the same arithmetic expression.
β
Correct Answer: (A)
true
Q. A function’s single most important role is to
β
Correct Answer: (D)
help organize a program into conceptual units.
Q. A function argument is
β
Correct Answer: (C)
a value sent to the function by the calling program.
Q. When arguments are passed by value, the function works with the original arguments in the calling program.
β
Correct Answer: (B)
false
Q. Which of the following can legitimately be passed to a function?
β
Correct Answer: (D)
all of the above
Q. 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.
β
Correct Answer: (A)
true
Q. When an argument is passed by reference
β
Correct Answer: (D)
the function accesses the argument’s original value in the calling program.
Jump to