Skip to main content

Kotlin Program — Part 2 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Kotlin Program — Part 2 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ PPSC ★ FPSC

What are lambdas in Kotlin?

Question 2 of 40
★ PPSC ★ FPSC

What is the purpose of the when expression in Kotlin?

Question 3 of 40
★ PPSC ★ FPSC

What is the purpose of the with function in Kotlin?

Question 4 of 40
★ PPSC ★ FPSC

What is the purpose of the apply function in Kotlin?

Question 5 of 40
★ PPSC ★ FPSC

Does Kotlin enable macros?

Question 6 of 40
★ PPSC ★ FPSC

What is the purpose of the Elvis operator in Kotlin?

Question 7 of 40
★ PPSC ★ FPSC

What is the purpose of the lateinit keyword in Kotlin?

Question 8 of 40
★ PPSC ★ FPSC

Which of the following is true about Kotlin?

Question 9 of 40
★ PPSC ★ FPSC

What is the main advantage of using Kotlin over Java?

Question 10 of 40
★ PPSC ★ FPSC

In Kotlin, it is possible to inherit class properties and functions from one class to another.

Question 11 of 40
★ PPSC ★ FPSC

Which of the following is a feature of Kotlin?

Question 12 of 40
★ PPSC ★ FPSC

Which of the following is true about Kotlin's null safety?

Question 13 of 40
★ PPSC ★ FPSC

Which of the following is true about Kotlin's type system?

Question 14 of 40
★ PPSC ★ FPSC

Which of the following is true about Kotlin's when expression?

Question 15 of 40
★ PPSC ★ FPSC

How can we write a multi-line comment in Kotlin?

Question 16 of 40
★ PPSC ★ FPSC

What is the purpose of the let() function in Kotlin?

Question 17 of 40
★ PPSC ★ FPSC

In Kotlin, code statements must end with a semicolon (;)

Question 18 of 40
★ PPSC ★ FPSC

Which of the following is true about Kotlin's data classes?

Question 19 of 40
★ PPSC ★ FPSC

What is the purpose of the inline keyword in Kotlin?

Question 20 of 40
★ PPSC ★ FPSC

What is the default inheritance of classes in Kotlin?

Question 21 of 40
★ PPSC ★ FPSC

Identify the bits allocated in Kotlin for Float data type

Question 22 of 40
★ PPSC ★ FPSC

The Kotlin code can be implemented without JVM?

Question 23 of 40
★ PPSC ★ FPSC

Array indexes start with:

Question 24 of 40
★ PPSC ★ FPSC

What paradigm(s) does the Kotlin programming language follow?

Question 25 of 40
★ PPSC ★ FPSC

How do you define a variable in Kotlin that cannot be reassigned?

Question 26 of 40
★ PPSC ★ FPSC

What is the when expression used in Kotlin?

Question 27 of 40
★ PPSC ★ FPSC

What does ?. operator do in Kotlin?

Question 28 of 40
★ PPSC ★ FPSC

The value of a string variable must be surrounded by single quotes.

Question 29 of 40
★ PPSC ★ FPSC

What is the default visibility modifier for functions in Kotlin?

Question 30 of 40
★ PPSC ★ FPSC

Which keyword is used to create a singleton in Kotlin?

Question 31 of 40
★ PPSC ★ FPSC

What is the main purpose of the let function in Kotlin?

Question 32 of 40
★ PPSC ★ FPSC

What is the purpose of the open modifier in Kotlin?

Question 33 of 40
★ PPSC ★ FPSC

Which Kotlin construct allows a block of code to be executed a specific number of times?

Question 34 of 40
★ PPSC ★ FPSC

Which keywords are used to handle conditional statements in Kotlin?

Question 35 of 40
★ PPSC ★ FPSC

In Kotlin, what is the main purpose of the return keyword?

Question 36 of 40
★ PPSC ★ FPSC

What is the primary use of the with function in Kotlin?

Question 37 of 40
★ PPSC ★ FPSC

Which of these is not a loop structure in Kotlin?

Question 38 of 40
★ PPSC ★ FPSC

What methods can be used to achieve abstraction in Kotlin?

Question 39 of 40
★ PPSC ★ FPSC

Which of the following is not a basic data type in Kotlin?

Question 40 of 40
★ PPSC ★ FPSC

Which property can be used to find the length of a string?

✓ Link copied to clipboard
Continue Your Practice

Advanced Mapreduce Concepts — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Computer Science & IT

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Computer Science & IT

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →