MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Advanced Java knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which maven plugin creates the project structure? |
| A. | dependency |
| B. | properties |
| C. | archetype |
| D. | execution |
| Answer» D. execution | |
| 2. |
Which command can be used to check maven version? |
| A. | mvn -ver |
| B. | maven -ver |
| C. | maven -version |
| D. | mvn -version |
| Answer» E. | |
| 3. |
Which of the below is a source code management tool? |
| A. | Jenkins |
| B. | Maven |
| C. | Git |
| D. | Hudson |
| Answer» D. Hudson | |
| 4. |
Which environment variable is used to specify the path to maven? |
| A. | JAVA_HOME |
| B. | PATH |
| C. | MAVEN_HOME |
| D. | CLASSPATH |
| Answer» D. CLASSPATH | |
| 5. |
Which file is used to specify the packaging cycle? |
| A. | build.xml |
| B. | pom.xml |
| C. | dependency.xml |
| D. | version.xml |
| Answer» B. pom.xml | |
| 6. |
Which file is used to define dependency in maven? |
| A. | build.xml |
| B. | pom.xml |
| C. | dependency.xml |
| D. | version.xml |
| Answer» C. dependency.xml | |
| 7. |
Which of the following is not a maven goal? |
| A. | clean |
| B. | package |
| C. | install |
| D. | debug |
| Answer» E. | |
| 8. |
Which of below is not a dependency management tool? |
| A. | Ant |
| B. | Maven |
| C. | Gradle |
| D. | Jenkins |
| Answer» E. | |
| 9. |
WHICH_MAVEN_PLUGIN_CREATES_THE_PROJECT_STRUCTURE??$ |
| A. | dependency |
| B. | properties |
| C. | archetype |
| D. | execution |
| Answer» D. execution | |
| 10. |
Which of the following is not true for Ant? |
| A. | It is a tool box |
| B. | It provides lifecycle management |
| C. | It is procedural |
| D. | It doesn’t have formal conventions |
| Answer» C. It is procedural | |
| 11. |
Can we run Junits as a part of Jenkins job? |
| A. | True |
| B. | False |
| Answer» B. False | |