Cisco | On-Campus Oa | 31 Jan, 2026 | Client Server Query Handler | Triplets

Cisco · Question · Posted Mar 2026

Question 1: Client Server Query Handler Problem Statement: There are two classes of messages in a particular network: ServerResponse and ClientRequest. Both inherit the Message class. The classes are defined with the following properties: Message (Base Class): Contains a string messageId. ServerResponse (Inherits Message): Contains a string serverId and a string metadata. ClientRequest (Inherits Message): Contains a string clientId and an integer requestTime. Implement a custom queue that supports enqueue and dequeue operations on both types of messages. The queue... ...

The full answer & interview discussion are available to premium members.

Log in Create a free account