Kotlin - Basics and JVM RuntimeHow do you correctly write a multi-line comment in Kotlin?A// This is a multi-line comment //B/* This is a multi-line comment */C<!-- This is a multi-line comment -->D# This is a multi-line comment #Check Answer
Step-by-Step SolutionSolution:Step 1: Recall Kotlin comment syntaxKotlin uses /* ... */ for multi-line comments.Step 2: Verify options/* This is a multi-line comment */ correctly uses /* and */ to enclose the comment.Final Answer:/* This is a multi-line comment */ -> Option BQuick Check:Multi-line comments use /* ... */ [OK]Quick Trick: Multi-line comments are enclosed with /* and */ [OK]Common Mistakes:MISTAKESUsing // for multi-line commentsUsing HTML comment syntaxUsing # which is not valid in Kotlin
Master "Basics and JVM Runtime" in Kotlin9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kotlin Quizzes Collections Fundamentals - Array creation and usage - Quiz 7medium Collections Fundamentals - Iterating collections with forEach - Quiz 5medium Collections Fundamentals - Set creation (setOf, mutableSetOf) - Quiz 9hard Collections Fundamentals - Collection size and emptiness checks - Quiz 6medium Control Flow as Expressions - If-else expression assignment - Quiz 12easy Data Types - String type and immutability - Quiz 12easy Data Types - Unit type as void equivalent - Quiz 6medium Kotlin Basics and JVM Runtime - What is Kotlin - Quiz 10hard Loops and Ranges - For loop with ranges - Quiz 5medium Null Safety - Non-nullable types by default - Quiz 13medium