Skip to main content

Kotlin Program — Part 1 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Kotlin Program — Part 1 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 is Kotlin?

Question 2 of 40
★ PPSC ★ FPSC

Who developed Kotlin?

Question 3 of 40
★ PPSC ★ FPSC

Under which license Kotlin was developed?

Question 4 of 40
★ PPSC ★ FPSC

Which platform does Kotlin primarily target?

Question 5 of 40
★ PPSC ★ FPSC

Kotlin is really better than Java?

Question 6 of 40
★ PPSC ★ FPSC

Which file extension is used to save Kotlin files?

Question 7 of 40
★ PPSC ★ FPSC

Under which license is Kotlin available?

Question 8 of 40
★ PPSC ★ FPSC

All classes in Kotlin are by default?

Question 9 of 40
★ PPSC ★ FPSC

Kotlin only works to support Java Language.

Question 10 of 40
★ PPSC ★ FPSC

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

Question 11 of 40
★ PPSC ★ FPSC

What are Kotlin coroutines?

Question 12 of 40
★ PPSC ★ FPSC

What is EditText a subclass of?

Question 13 of 40
★ PPSC ★ FPSC

Which of the following is a ViewGroup?

Question 14 of 40
★ PPSC ★ FPSC

What is the fname known as in the following code: fun myFunction(fname: String)

Question 15 of 40
★ PPSC ★ FPSC

What kinds of programming types does Kotlin support?

Question 16 of 40
★ PPSC ★ FPSC

What handles null exceptions in Kotlin?

Question 17 of 40
★ PPSC ★ FPSC

What is the default behavior of Kotlin classes?

Question 18 of 40
★ PPSC ★ FPSC

Which are the basic data types in Kotlin?

Question 19 of 40
★ PPSC ★ FPSC

The two types of constructors in Kotlin are

Question 20 of 40
★ PPSC ★ FPSC

The functions in Kotlin can be divided into how many types?

Question 21 of 40
★ PPSC ★ FPSC

What is a sealed class in Kotlin?

Question 22 of 40
★ PPSC ★ FPSC

What defines a sealed class in Kotlin?

Question 23 of 40
★ PPSC ★ FPSC

What is a data class in Kotlin?

Question 24 of 40
★ PPSC ★ FPSC

What is a lambda in Kotlin?

Question 25 of 40
★ PPSC ★ FPSC

How do you call a function in Kotlin?

Question 26 of 40
★ PPSC ★ FPSC

What is the Elvis operator in Kotlin?

Question 27 of 40
★ PPSC ★ FPSC

Which version of Android Studio has the Kotlin plugin bundled in?

Question 28 of 40
★ PPSC ★ FPSC

What about Java Interoperability?

Question 29 of 40
★ PPSC ★ FPSC

What is a nested class in Kotlin?

Question 30 of 40
★ PPSC ★ FPSC

What does the also function do in Kotlin?

Question 31 of 40
★ PPSC ★ FPSC

How do you create a single-line comment in Kotlin?

Question 32 of 40
★ PPSC ★ FPSC

What does a data class not offer?

Question 33 of 40
★ PPSC ★ FPSC

What is the correct way to initialize a nullable variable?

Question 34 of 40
★ PPSC ★ FPSC

What is a companion object in Kotlin?

Question 35 of 40
★ PPSC ★ FPSC

In Kotlin, default modifier is?

Question 36 of 40
★ PPSC ★ FPSC

What is the default constructor in Kotlin?

Question 37 of 40
★ PPSC ★ FPSC

Does Kotlin use the "static" keyword?

Question 38 of 40
★ PPSC ★ FPSC

What is an immutable variable?

Question 39 of 40
★ PPSC ★ FPSC

What are varargs in Kotlin?

Question 40 of 40
★ PPSC ★ FPSC

Are semicolons (;) mandatory at the end of code statements in Kotlin?

✓ 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 →