Welcome to the Gradle in Android Studio Quiz! This quiz is designed to test your understanding of how Gradle integrates with Android Studio, its role in building and managing Android projects, and the configuration options available for customizing the build process. You’ll encounter questions on key concepts like Gradle dependencies, build variants, and build files, as well as the ways Gradle supports advanced build requirements like ProGuard, APK signing, and more.
1.
Which Gradle build file contains settings for ProGuard optimization?
2.
What is the purpose of the 'settings.gradle.kts' file?
3.
Which Gradle file should be edited to define how build variants are configured?
4.
What is the recommended way to declare the version of the Java compiler in Gradle?
5.
Which file typically defines the project's namespace and SDK version?
6.
What is Gradle in the context of Android Studio?
7.
What type of programming language is used for Gradle build scripts?
8.
What is one advantage of using Gradle for building Android apps?
9.
What is the role of the 'android' block in the module-level build.gradle.kts file?
10.
What is the purpose of ProGuard in an Android project?
11.
Why is the concept of 'convention over configuration' important in Gradle?
12.
How can sensitive information like signing keys be managed in Gradle?
13.
What does the 'assembleDebug' Gradle task do?
14.
What is the purpose of the Gradle command-line wrapper?
15.
Which command is used to build a release version of an app using the Gradle wrapper?
16.
How does Gradle handle dependencies in an Android project?
17.
Which Gradle build feature allows the creation of different versions of an app for various device types?
18.
What is a local dependency in the context of Gradle?
19.
What is a remote dependency in Gradle?
20.
Which section in the module-level build.gradle.kts file allows Jetpack Compose to be enabled?