
Structural Design Patterns in Modern C++ - Introduction to the Proxy Pattern
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one of the main advantages of using a proxy design pattern?
It enables adding functionality without altering the original object.
It requires the client to always access the real object directly.
It allows direct modification of the original object.
It provides a completely different interface from the real object.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it important for a proxy to have the same interface as the real object?
To allow the proxy to provide a different set of functionalities.
To make the proxy more complex than the real object.
To enable seamless substitution of the real object with the proxy.
To ensure the client can distinguish between the proxy and the real object.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can a proxy in C avoid implementing all the functions of the real object?
By using a different programming language.
By overloading the member access and dereference operators.
By creating a new interface for the proxy.
By directly modifying the real object.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a virtual proxy primarily used for?
To cache expensive calls.
To create expensive objects on demand.
To prevent direct access to the real subject.
To provide access to remote components.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of proxy is used to cache expensive calls?
Virtual proxy
Cache proxy
Remote proxy
Protection proxy
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary function of a protection proxy?
To simplify network communication.
To cache method calls.
To create objects on demand.
To restrict direct access to the real subject.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What additional functionality does a smart proxy provide?
It performs additional actions when accessing the real subject.
It creates objects only when needed.
It allows direct access to the real subject.
It caches method calls for efficiency.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?