MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
___________ returns an iterator over a collection. |
| A. | ActionSequence |
| B. | CustomAction |
| C. | ReturnIteratorAction |
| D. | ReturnEnumerationAction |
| Answer» D. ReturnEnumerationAction | |
| 2. |
___________ returns an Enumeration over a collection. |
| A. | ActionSequence |
| B. | CustomAction |
| C. | DoAllAction |
| D. | ReturnEnumerationAction |
| Answer» E. | |
| 3. |
_____________ performs multiple actions every time it is invoked. |
| A. | ActionSequence |
| B. | CustomAction |
| C. | DoAllAction |
| D. | ReturnValueAction |
| Answer» D. ReturnValueAction | |
| 4. |
______________ is a partial implementation of the Action interface that making it easy to implement actions specific to applications with inline anonymous classes. |
| A. | ActionSequence |
| B. | CustomAction |
| C. | DoAllAction |
| D. | ReturnValueAction |
| Answer» C. DoAllAction | |
| 5. |
The exception thrown by the ActionSequence mehod is _____________ |
| A. | NullPointer |
| B. | Throwable |
| C. | ArrayIndexOutOfBounds |
| D. | Arithmetic |
| Answer» C. ArrayIndexOutOfBounds | |
| 6. |
_____________ returns the next of a sequence of elements each time it is invoked. |
| A. | ActionSequence |
| B. | CustomAction |
| C. | DoAllAction |
| D. | ReturnValueAction |
| Answer» B. CustomAction | |
| 7. |
____________ package contains actions that fake the behavior of mocked invocations. |
| A. | org.jmock |
| B. | org.jmock.lib.action |
| C. | org.jmock.lib |
| D. | org.jmock.lib.script |
| Answer» C. org.jmock.lib | |
| 8. |
____________ defines a variable that can be referred to by the script. |
| A. | describeTo(Description description) |
| B. | invoke(Invocation invocation) |
| C. | perform(String script) |
| D. | where(String name, Object value) |
| Answer» E. | |
| 9. |
___________ creates an action that performs the given script. |
| A. | describeTo(Description description) |
| B. | invoke(Invocation invocation) |
| C. | perform(String script) |
| D. | where(String name, Object value) |
| Answer» D. where(String name, Object value) | |