MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A _____________ handler is attached to the root to serve files from the file system. |
| A. | SourceHandler |
| B. | ResourceHandler |
| C. | AttachHandler |
| D. | RootHandler |
| Answer» C. AttachHandler | |
| 2. |
The ______________ method sets the document root from which to serve resources. |
| A. | setResourceBase |
| B. | resourceBase |
| C. | setResource |
| D. | setBase |
| Answer» B. resourceBase | |
| 3. |
To create a Jetty context object, we have to import _____________ |
| A. | org.mortbay.jetty.Context; |
| B. | org.jetty.Context; |
| C. | org.mortbay.jetty.servlet.Context; |
| D. | org.junit.Server; |
| Answer» D. org.junit.Server; | |
| 4. |
When unit testing, it s important to be able to control as much as possible of the environment in which the tests execute. |
| A. | True |
| B. | False |
| Answer» B. False | |