Search Your Question...!

Gradle MCQ's

1. In gradle, JAR files are published to

   View Answer   

   ALL



2. Jobs are the unit of execution in Jenkins.

   View Answer   

   False



3. Which of the following statement is true about Jenkins?

   View Answer   

   ALL



4. The plugins provided by jenkins supports

   View Answer   

   ALL



5. Applying the Application plugin also implicitly applies the Java plugin.

   View Answer   

   True



6. How to check gradle version?

   View Answer   

   gradle -v



7. Gradle tasks can also be created and extended dynamically at runtime.

   View Answer   

   True



8. In gradle the init task creates a Gradle project, which contains _______________.

   View Answer   

   all



9. In gradle a disabled task is labelled as _________.

   View Answer   

   DISABLED



10. Which task is added by wrapper plugin to the project?

   View Answer   

   wrapper



11. The two build files generated by android studio are in ________________.

   View Answer   

   root fol of proj and app



12. Gradle Build Init plugin is an automatically applied plugin.

   View Answer   

   True



13. Which of the following is a quality plugin of Gradle?

   View Answer   

   all



14. Lifecycle tasks typically have task actions.

   View Answer   

   False



15. In gradle it is useful to have a build that is more declarative as possible , since this

   View Answer   

   Both



16. In Gradle, the java plugin searches for java production source code in the directory ___________.

   View Answer   

   src/test/java



17. Which of the following statements are true?

   View Answer   

   Only Ant script



18. In gradle to specify, which projects belong to the build, and which file is used?

   View Answer   

   settings.gradle



19. Consider the following gradle build script: task a {
doLast { println 'A'
}}
task b(dependsOn: a) {
doLast { println 'B'
}}
task c(dependsOn: a){
DoLast { println 'C'
}}

   View Answer   

   AC



20. Finalizer tasks are automatically added to the task graph when the finalized task is scheduled to run.

   View Answer   

   Both



21. Multiline comments in Gradle build files are included using _____ .

   View Answer   

   /*ML*/



22. Consider the following gradle build script: task a{
ext.myProperty = "Hello"
}
task b{
doLast {
println a.myProperty
println c.myProperty
}}
task c(dependsOn: b){
ext.myProperty = "Hey"
println "Hi"}
If the task gradle -q c is run, what is the output?

   View Answer   

   Hi hello hey



23. Gradle build scripts are written in _________.

   View Answer   

   Groovy or koltin



24. Gradle build scripts use a combination of declarative and imperative statements.

   View Answer   

   TRUE



25. Which plugins are configured while integrating gradle with Jenkins?

   View Answer   

   Gradle plugin and plugin of repository used



26. Which are the two types of plugins in gradle?

   View Answer   

   Script and binary



27. In Jenkins, a build job performs _______.

   View Answer   

   ALL



28. Which method is used to attach a predicate to a skipping task?

   View Answer   

   SKIP()



29. Gradle is an imperative build tool.

   View Answer   

   False



30. Gradle wrapper makes the execution of the build independent of the installed Gradle version.

   View Answer   

   False



31. The war plugin enables the default JAR archive generation of the Java plugin.

   View Answer   

   TRUE



32. Which plugin facilitates creating an executable JVM application _________.

   View Answer   

   JAVA PLUGIN



33. To build Android project, which version of gradle is required?

   View Answer   

   1.12



34. The external dependencies for the build script are defined using ___________.

   View Answer   

   ALL



35. Which of the following is Gradle's in-built task?

   View Answer   

   ALL



36. The scala plugin applied in the gradle can deal with ____________.

   View Answer   

   ALL



37. While building a java project with gradle, the JAR files are created in ____ after the execution of gradle build command.

   View Answer   

   BUILD/CLASSES



38. Java plugin is a binary plugin.

   View Answer   

   TRUE



39. In the android plugin for gradle, which two properties on the android configuration block are required?

   View Answer   

   Build tool version and complie options



40. Gradle dependencies are stored in builds.

   View Answer   

   False



41. Gradle is a _______ based build tool.

   View Answer   

   JVM



42. Which of the following statement is false?

   View Answer   

   Rich command line interface



43. Finalizer tasks are automatically added to the task graph when the finalized task is scheduled to run.

   View Answer   

   False



44. The wrapper plugin can be auto-applied to the root project of the current build without modifying the build.gradle file.

   View Answer   

   TRUE



45. In android studio, what is the folder in which the build file is used to build the Android application?

   View Answer   

   gradle folder



No comments:

Post a Comment