adplus-dvertising
frame-decoration

Question

What happens when a client requests some service from a server object in a programming language?

a.

The server object fails to deliver the service.

b.

The client asks more than what is stated in the contract.

c.

The client and the server operate as intended.

d.

The client and the server violate the contract.

Answer: (c).The client and the server operate as intended. Explanation:In order for a collection of objects to operate together as intended, each of the objects must be able to rely on the proper operation of the objects with which it interacts. When a client requests some service from a server object, the client will not ask more than what is stated in the contract, while the server promises to deliver what is stated in the contract.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What happens when a client requests some service from a server object in a programming language?

Similar Questions

Discover Related MCQs

Q. What happens to an object instance over time in a programming language?

Q. Can information requested from an object in a programming language only concern the state of the object instance?

Q. What is the definition of a class in programming language?

Q. What is the purpose of a contract between client and server objects?

Q. What does the major behavioral aspect of an object concern?

Q. What is the goal during analysis and design in programming?

Q. What is the relationship between Furniture, Table, and Chair in programming?

Q. What is the relation between Chair and Furniture in programming?

Q. What is the purpose of the is-a relation in object-oriented design?

Q. What is the purpose of the part-of relation in object-oriented design?

Q. What is the difference between composition and aggregation in UML?

Q. Is the part-of relation transitive?

Q. Is the member-of relation transitive?

Q. Who controls the activities around UML?

Q. What is the current version of UML?

Q. How many diagrams does UML 2 have?

Q. What type of view do static diagrams give in UML 2?

Q. What is a class diagram in UML?

Q. What are the three compartments of a class in a class diagram?

Q. What type of relationship can be depicted in a class diagram?