Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications
Ace your competitive exams, technical interviews, and certifications with these Kotlin programming MCQ questions. Perfect for Android developers and software engineers to test their Kotlin skills and knowledge. Page-5 section-2
Each section contains 100 MCQs on
Kotlin Program .
The function typeChecker receiver a parameter obj of type Any. Based upon the type of obj, it prints different messages for Int, String, Double, and Float types; if not any of the mentioned types, it prints "unknown type". What operator allows you to determine the type of an object?
You are writing a console app in Kotlin that processes test entered by the user. If the user enters an empty string, the program exits. Which kind of loop would work best for this app? Keep in mind that the loop is entered at least once