
Behavioral Design Patterns in C++ - DataList - II
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 was one of the changes made to the menu class?
Adding a new header file
Changing the programming language
Accepting arguments in the command class
Removing unnecessary header files
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How was the error in the sort class resolved?
By using a copy of the vector
By changing the data type
By removing the sort class
By using a different sorting algorithm
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a macro command?
A list of commands executed sequentially
A single command that performs multiple tasks
A command that runs in the background
A command that requires user input
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'add' function in the macro command class?
To add commands to the macro
To display the list of commands
To execute the macro command
To remove commands from the macro
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which design pattern is used to create macro commands?
Singleton pattern
Observer pattern
Composite pattern
Factory pattern
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one benefit of using macro commands?
They increase the complexity of the application
They allow for manual execution of commands
They require more memory
They save keystrokes and simplify repetitive tasks
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which two design patterns are used in the application?
Command and Composite patterns
Composite and Factory patterns
Singleton and Builder patterns
Command and Observer patterns
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?