Bird
0
0

In a Kotlin project using Gradle, which file typically specifies the Kotlin version and dependencies?

easy📝 Conceptual Q1 of 15
Kotlin - Basics and JVM Runtime
In a Kotlin project using Gradle, which file typically specifies the Kotlin version and dependencies?
Abuild.gradle.kts
Bsettings.gradle
Cgradle.properties
Dlocal.properties
Step-by-Step Solution
Solution:
  1. Step 1: Identify the file for build configuration

    The build.gradle.kts file is used to configure the build, including Kotlin version and dependencies.
  2. Step 2: Understand roles of other files

    settings.gradle manages project modules, gradle.properties stores properties, local.properties is for local environment settings.
  3. Final Answer:

    build.gradle.kts -> Option A
  4. Quick Check:

    Build configuration file = build.gradle.kts [OK]
Quick Trick: build.gradle.kts holds Kotlin version and dependencies [OK]
Common Mistakes:
MISTAKES
  • Confusing settings.gradle with build.gradle.kts
  • Thinking gradle.properties defines dependencies
  • Assuming local.properties controls build versions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kotlin Quizzes