CSE2305 - Object-Oriented Software Engineering
Self Assesment Questions
For each question choose the single response which best answers the question, or which completes the statement most accurately.
| Question 159: | An example of the "source and sink" pattern is: |
new and delete |
| cin and cout |
| cout and cerr |
| operator>> and operator<< |
| Constructors and destructors |
| Question 160: | "Filtering" is a design pattern in which: |
| I/O is converted to and from ASCII. |
| objects in a collection are selected according to some criterion. |
| objects in a collection are sorted according to some criterion. |
| a collection of objects has some value-changing operation applied to every object in it. |
| None of the above. |
| Question 161: | The "Singleton" design pattern: |
| Creates only one class of a particular type |
| Allows unified access to a single instance of a particular class |
| should always be used in place of global variables |
| can cause difficult to reporduce bugs due to the static initialisation order of C++ |
| All of the above. |
Last updated: September 3, 2005