Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the class \"PrintServer\" whose Role is to \"Provide central print service

ID: 3544312 • Letter: G

Question

Given the class "PrintServer" whose Role is to "Provide central print services for the entire application", and it's sterotype is a "Service Provider", which of the following is most correct about this CRC card?


A. This class primarily decides things.

B. This class interfaces between the application and the printer

C. This class can perform services, but cannot know things or decide things.

D. This class has a primary duty of performing services, but may also know things and decide things.

I initially picked C, because I thought to myself "It's just a service provider so it shouldn't need to know anything. Problem is that in a scenario of an environment with multiple printers and multiple computers hooked up to a print server, the server would decide which printers are busy so to not send print jobs there, right? Using this past point (which may be wrong, let me know if it is), I decided that it might be D, since it may know that the printer is busy or not, and whether it's functional or not, and decide whether to send a job to a printer that's busy or not. But the main question is, is the job of deciding a functionality of a SERVICE PROVIDER or is it for another collaborator that makes the decision and sends it over to the print server?

Please let me know what you think and why. It's due in the next hour so a quick response would be appreciated. Thanks in advance.
------------
And for another similar question:

SERVER
-------------------------------------------------
Know list of clients
Know my IP address
Accept Connections
Route messages to appropriate client

A. Interfacer B. Information Holder C. Structurer D. Service Provider

I put B, is this correct or not?

Explanation / Answer

D. This class has a primary duty of performing services, but may also know things and decide things.




yep u r right


B. Information Holder

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote