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
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is Kotlin?
Correct Answer: Option C — A statically-typed programming language for the JVM, Android, and browser.
Detailed Academic Explanation:
A statically-typed programming language for the JVM, Android, and browser. is the correct answer to “What is Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 2 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Who developed Kotlin?
Correct Answer: Option D — JetBrains
Detailed Academic Explanation:
JetBrains is the correct answer to “Who developed Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 3 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Under which license Kotlin was developed?
Correct Answer: Option C — 2.0
Detailed Academic Explanation:
2.0 is the correct answer to “Under which license Kotlin was developed”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 4 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which platform does Kotlin primarily target?
Correct Answer: Option B — JavaScript
Detailed Academic Explanation:
JavaScript is the correct answer to “Which platform does Kotlin primarily target”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 5 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Kotlin is really better than Java?
Correct Answer: Option C — Yes, Kotlin is really better
Detailed Academic Explanation:
Yes, Kotlin is really better is the correct answer to “Kotlin is really better than Java”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 6 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which file extension is used to save Kotlin files?
Correct Answer: Option C — .kt or .kts
Detailed Academic Explanation:
.kt or .kts is the correct answer to “Which file extension is used to save Kotlin files”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 7 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Under which license is Kotlin available?
Correct Answer: Option C — Apache 2
Detailed Academic Explanation:
Apache 2 is the correct answer to “Under which license is Kotlin available”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 8 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
All classes in Kotlin are by default?
Correct Answer: Option B — final
Detailed Academic Explanation:
final is the correct answer to “All classes in Kotlin are by default”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 9 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Kotlin only works to support Java Language.
Correct Answer: Option A — FALSE
Detailed Academic Explanation:
FALSE is the correct answer to “Kotlin only works to support Java Language.”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 10 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is not the basic data type in Kotlin?
Correct Answer: Option D — Lists
Detailed Academic Explanation:
Lists is the correct answer to “Which of the following is not the basic data type in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 11 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What are Kotlin coroutines?
Correct Answer: Option D — They provide asynchronous code without thread blocking
Detailed Academic Explanation:
They provide asynchronous code without thread blocking is the correct answer to “What are Kotlin coroutines”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 12 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is EditText a subclass of?
Correct Answer: Option C — TextView
Detailed Academic Explanation:
TextView is the correct answer to “What is EditText a subclass of”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 13 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is a ViewGroup?
Correct Answer: Option B — LinearLayout
Detailed Academic Explanation:
LinearLayout is the correct answer to “Which of the following is a ViewGroup”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 14 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the fname known as in the following code: fun myFunction(fname: String)
Correct Answer: Option C — parameter
Detailed Academic Explanation:
parameter is the correct answer to “What is the fname known as in the following code: fun myFunction(fname: String)”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 15 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What kinds of programming types does Kotlin support?
Correct Answer: Option C — Both A & B
Detailed Academic Explanation:
Both A & B is the correct answer to “What kinds of programming types does Kotlin support”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 16 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What handles null exceptions in Kotlin?
Correct Answer: Option D — Elvis operator
Detailed Academic Explanation:
Elvis operator is the correct answer to “What handles null exceptions in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 17 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the default behavior of Kotlin classes?
Correct Answer: Option B — All classes are final
Detailed Academic Explanation:
All classes are final is the correct answer to “What is the default behavior of Kotlin classes”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 18 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which are the basic data types in Kotlin?
Correct Answer: Option D — All of these
Detailed Academic Explanation:
All of these is the correct answer to “Which are the basic data types in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 19 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
The two types of constructors in Kotlin are
Correct Answer: Option A — Primary and Secondary constructor
Detailed Academic Explanation:
Primary and Secondary constructor is the correct answer to “The two types of constructors in Kotlin are”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 20 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
The functions in Kotlin can be divided into how many types?
Correct Answer: Option A — 2
Detailed Academic Explanation:
2 is the correct answer to “The functions in Kotlin can be divided into how many types”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 21 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is a sealed class in Kotlin?
Correct Answer: Option D — A class that is used to define a closed set of subclasses
Detailed Academic Explanation:
A class that is used to define a closed set of subclasses is the correct answer to “What is a sealed class in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 22 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What defines a sealed class in Kotlin?
Correct Answer: Option B — It represents restricted class hierarchies
Detailed Academic Explanation:
It represents restricted class hierarchies is the correct answer to “What defines a sealed class in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 23 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is a data class in Kotlin?
Correct Answer: Option A — A class that is used to represent data structures
Detailed Academic Explanation:
A class that is used to represent data structures is the correct answer to “What is a data class in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 24 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is a lambda in Kotlin?
Correct Answer: Option A — A function that is passed as an argument to another function
Detailed Academic Explanation:
A function that is passed as an argument to another function is the correct answer to “What is a lambda in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 25 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
How do you call a function in Kotlin?
Correct Answer: Option A — functionName()
Detailed Academic Explanation:
functionName() is the correct answer to “How do you call a function in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 26 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the Elvis operator in Kotlin?
Correct Answer: Option C — An operator used to check for null values
Detailed Academic Explanation:
An operator used to check for null values is the correct answer to “What is the Elvis operator in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 27 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which version of Android Studio has the Kotlin plugin bundled in?
Correct Answer: Option D — None of these
Detailed Academic Explanation:
None of these is the correct answer to “Which version of Android Studio has the Kotlin plugin bundled in”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 28 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What about Java Interoperability?
Correct Answer: Option D — Kotlin can quickly call the Java code and vice versa.
Detailed Academic Explanation:
Kotlin can quickly call the Java code and vice versa. is the correct answer to “What about Java Interoperability”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 29 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is a nested class in Kotlin?
Correct Answer: Option A — A class that is defined within another class
Detailed Academic Explanation:
A class that is defined within another class is the correct answer to “What is a nested class in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 30 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What does the also function do in Kotlin?
Correct Answer: Option B — It runs a block of code and returns the object it was called on
Detailed Academic Explanation:
It runs a block of code and returns the object it was called on is the correct answer to “What does the also function do in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 31 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
How do you create a single-line comment in Kotlin?
Correct Answer: Option A — // This is a comment
Detailed Academic Explanation:
// This is a comment is the correct answer to “How do you create a single-line comment in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 32 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What does a data class not offer?
Correct Answer: Option D — Automatic conversion from/to JSON
Detailed Academic Explanation:
Automatic conversion from/to JSON is the correct answer to “What does a data class not offer”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 33 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the correct way to initialize a nullable variable?
Correct Answer: Option D — val name: String? = null
Detailed Academic Explanation:
val name: String? = null is the correct answer to “What is the correct way to initialize a nullable variable”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 34 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is a companion object in Kotlin?
Correct Answer: Option D — An object that is used to define static members of a class
Detailed Academic Explanation:
An object that is used to define static members of a class is the correct answer to “What is a companion object in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 35 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In Kotlin, default modifier is?
Correct Answer: Option A — public
Detailed Academic Explanation:
public is the correct answer to “In Kotlin, default modifier is”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 36 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the default constructor in Kotlin?
Correct Answer: Option D — implicit constructor
Detailed Academic Explanation:
implicit constructor is the correct answer to “What is the default constructor in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 37 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Does Kotlin use the "static" keyword?
Correct Answer: Option A — No
Detailed Academic Explanation:
No is the correct answer to “Does Kotlin use the "static" keyword”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 38 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is an immutable variable?
Correct Answer: Option A — A variable that cannot change, read-only
Detailed Academic Explanation:
A variable that cannot change, read-only is the correct answer to “What is an immutable variable”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 39 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What are varargs in Kotlin?
Correct Answer: Option A — Varargs are the parameters that enable the number of arguments sent to the function.
Detailed Academic Explanation:
Varargs are the parameters that enable the number of arguments sent to the function. is the correct answer to “What are varargs in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
Question 40 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Are semicolons (;) mandatory at the end of code statements in Kotlin?
Correct Answer: Option B — FALSE
Detailed Academic Explanation:
FALSE is the correct answer to “Are semicolons (;) mandatory at the end of code statements in Kotlin”. This question is standard in competitive examination syllabi for Kotlin Program.
💡Key Conceptual Anchor:Kotlin Program
✓Link copied to clipboard
Continue Your Practice
Advanced Mapreduce Concepts — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
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.