Bird
0
0

Which command is used to start the Kotlin REPL in a terminal?

easy📝 Conceptual Q2 of 15
Kotlin - Basics and JVM Runtime
Which command is used to start the Kotlin REPL in a terminal?
Akotlin
Bkotlinc -script
Ckotlinc-jvm
Dkotlinc
Step-by-Step Solution
Solution:
  1. Step 1: Identify REPL start command

    The command 'kotlin' starts the REPL interactive shell.
  2. Step 2: Differentiate from compiler commands

    'kotlinc' compiles code, 'kotlinc -script' runs scripts, but 'kotlin' alone starts REPL.
  3. Final Answer:

    kotlin -> Option A
  4. Quick Check:

    Start Kotlin REPL = kotlin command [OK]
Quick Trick: Use 'kotlin' command to open REPL shell [OK]
Common Mistakes:
MISTAKES
  • Using 'kotlinc' which compiles but doesn't start REPL
  • Confusing script mode with REPL start
  • Trying 'kotlinc-jvm' which is compiler specific

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kotlin Quizzes