Gradle - Fabricating Systems | Fresco Play
Question 1: In gradle, JAR files are published to
Answer: All the options mentioned
Question 2: Jobs are the unit of execution in Jenkins.
Answer: TRUE
Question 3: Which of the following statement is true about Jenkins?
Answer: All the options mentioned
Question 4: The plugins provided by jenkins supports
Answer: All the options mentioned
Question 5: Gradle tasks can also be created and extended dynamically at runtime.
Answer: True
Question 6: In gradle the init task creates a Gradle project, which contains _______________.
Answer: gradle wrapper files
Question 7: In gradle a disabled task is labelled as _________.
Answer: DISABLED
Question 8: Which task is added by wrapper plugin to the project?
Answer: wrapper
Question 9: The two build files generated by android studio are in ________________.
Answer: root folder of project and app directory
Question 10: Gradle Build Init plugin is an automatically applied plugin.
Answer: True
Question 11: Which of the following is a quality plugin of Gradle?
Answer: All the options mentioned
Question 12: In gradle it is useful to have a build that is more declarative as possible , since this
Answer: simplifies future maintenance
Question 13: Which of the following is a quality plugin of Gradle?
Answer: pmd
Question 14: In gradle to specify, which projects belong to the build, and which file is used?
Answer: settings.gradle
Question 15: 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' }}
Answer: AC
Question 16: To execute the hello task in the build file, type ___ on the command line.
Answer: gradle hello or gradle -q hello
Question 17: Multiline comments in Gradle build files are included using _____ .
Answer: /*ML*/
Question 18: 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?
Answer: Hi hello hey
Question 19: Which plugins are configured while integrating gradle with Jenkins?
Answer: Gradle plugin and plugin of repository used
Question 20: Which are the two types of plugins in gradle?
Answer: Script and binary
Question 21: In Jenkins, a build job performs _______.
Answer: All the options mentioned
Question 22: Which method is used to attach a predicate to a skipping task?
Answer: onlyIf()
Question 23: Gradle wrapper makes the execution of the build independent of the installed Gradle version.
Answer: TRUE
Question 24: Which plugin facilitates creating an executable JVM application _________.
Answer: Application plugin
Question 25: To build Android project, which version of gradle is required?
Answer: Gradle 1.12 and above
Question 26: Which of the following is Gradle's in-built task?
Answer: All the options mentioned
Question 27: The scala plugin applied in the gradle can deal with ____________.
Answer: ALL
Question 28: While building a java project with gradle, the JAR files are created in ____ after the execution of gradle build command.
Answer: build/libs
Question 29: Java plugin is a binary plugin.
Answer: TRUE
Question 30: In the android plugin for gradle, which two properties on the android configuration block are required?
Answer: Build tools version and compile sdk version
Question 31: Gradle is a _______ based build tool.
Answer: JVM
Question 32: Finalizer tasks are automatically added to the task graph when the finalized task is scheduled to run.
Answer: False
Question 33: In android studio, what is the folder in which the build file is used to build the Android application?
Answer: app folder
Question 34: The build task added by the java plugin ___________.
Answer: Performs a full build of the project.
Question 35: When gradle plugins are applied to a project, it is possible to _____________.
Answer: create new tasks
Question 36: Gradle requires a Java JDK or JRE and Groovy to be installed.
Answer: False
Question 37: Applying the Application plugin also implicitly applies the Java plugin.
Answer: True
Question 38: How to check gradle version?
Answer: gradle -version
Question 39: Lifecycle tasks typically have task actions.
Answer: False
Question 40: In Gradle, the java plugin searches for java production source code in the directory ___________.
Answer: src/test/java
Question 41: Which of the following statements are true?
Answer: 1. Only Maven script can be migrated to Gradle build script 2. Only Ant script can be migrated to Gradle build script
Question 42: Gradle build scripts are written in _________.
Answer: Groovy or Kotlin
Question 43: Gradle build scripts use a combination of declarative and imperative statements.
Answer: TRUE
Question 44: Gradle is an imperative build tool.
Answer: False
Question 45: The war plugin enables the default JAR archive generation of the Java plugin.
Answer: TRUE
Question 46: The external dependencies for the build script are defined using ___________.
Answer: ALL
Question 47: Gradle dependencies are stored in builds.
Answer: False
Question 48: Which of the following statement is false?
Answer: Gradle is an imperative build tool
Question 49: The wrapper plugin can be auto-applied to the root project of the current build without modifying the build.gradle file.
Answer: TRUE
Question 50: Running Gradle builds with the Daemon executes the build quickly.
Answer: TRUE
Question 51: Which task is executed to use Gradle Build Init plugin?
Answer: init
Question 52: Gradle supports multiple project templates called archetypes ________.
Answer: TRUE
Question 53: Which of the following is a language plugin included in the Gradle distribution?
Answer: Groovy and scala
Question 54: The first line added in the build script to make the Android plug-in available for a Gradle build is ____________.
Answer: apply plugin: 'com.android.application'
Question 55: In gradle the Java plug-in provides tasks to __________.
Answer: All the options mentioned
Post a comment
Get your FREE PDF on "100 Ways to Try ChatGPT Today"
Generating link, please wait for: 60 seconds
Comments
Join the conversation and share your thoughts! Leave the first comment.