1. Home
  2. Computer Science MCQs
  3. PHP
  4. Object-oriented code tries to minimize dependencies by…

Added 22 Jan 2024

Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.

  1. server code
  2. client code Correct answer
  3. machine code
  4. procedural code

Correct answer

B. client code

10 views

MCQSEXAM

Explanation

Responsibility is moved away from client code and into the objects themselves. Instead of the calling code deciding how a task is carried out, each object knows how to do its own work.

This reduces dependencies: client code only needs an object's interface, so a change in implementation stays inside the class.

Keep preparing with more Computer Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs