--:--









Quiz for Build Tools (Maven, Gradle)

Course: JAVA | Subject: Java | Topic: Other Key Subjects



Logo

Q1: Which file is used by Maven to manage dependencies?

Logo

Q2: Which file is used by Gradle to define the project structure and dependencies?

Logo

Q3: What is the command to build a Maven project?

Logo

Q4: Which directory in Maven contains Java source files by default?

Logo

Q5: What does the "install" phase do in Maven?

Logo

Q6: Which Gradle command is used to compile the code?

Logo

Q7: In Maven, what is the purpose of the "dependency" section in pom.xml?

Logo

Q8: What is the default build tool for Spring Boot projects?

Logo

Q9: Which plugin in Maven is used to compile Java code?

Logo

Q10: What is the main advantage of using a build tool?

Logo

Q11: Which file defines repositories in a Maven project?

Logo

Q12: Where does Maven store downloaded dependencies locally?

Logo

Q13: What is the purpose of the "clean" command in Maven and Gradle?

Logo

Q14: In Gradle, which file can be used to define settings for multi-project builds?

Logo

Q15: Which Gradle command is used to view available tasks?

Logo

Q16: Which block is used to declare dependencies in Gradle?

Logo

Q17: Which build tool uses a Domain Specific Language (DSL)?

Logo

Q18: Which phase comes first in the Maven build lifecycle?

Logo

Q19: What does the "repositories" block do in Gradle?

Logo

Q20: Which of the following is **not** a Maven build phase?

Are you ready to start test? Set your time limit