Functions interview questions

15 real Functions questions from the Kotlin bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Default argument?

Junior
  1. A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
  2. B.a function declared outside a class that adds new callable behavior to that type without modifying it
  3. C.a parameter given a fallback value so callers may omit it at the call site
  4. D.a single-parameter member or extension callable without a dot or parentheses between operands
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Default argument — passing a value by writing its parameter label, allowing reordering and clarity at the call site
  2. B.Default argument — a function that accepts another function as a parameter or returns one as its result
  3. C.Default argument — a parameter given a fallback value so callers may omit it at the call site
  4. D.Default argument — a single-parameter member or extension callable without a dot or parentheses between operands
Reveal the answer + AI explanation — free account

4. What is Named argument?

Junior
  1. A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
  2. B.a parameter given a fallback value so callers may omit it at the call site
  3. C.a function declared outside a class that adds new callable behavior to that type without modifying it
  4. D.a function that accepts another function as a parameter or returns one as its result
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Named argument — passing a value by writing its parameter label, allowing reordering and clarity at the call site
  2. B.Named argument — a function declared outside a class that adds new callable behavior to that type without modifying it
  3. C.Named argument — a single-parameter member or extension callable without a dot or parentheses between operands
  4. D.Named argument — a parameter given a fallback value so callers may omit it at the call site
Reveal the answer + AI explanation — free account

7. What is Extension function?

Mid
  1. A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
  2. B.a function that accepts another function as a parameter or returns one as its result
  3. C.a single-parameter member or extension callable without a dot or parentheses between operands
  4. D.a function declared outside a class that adds new callable behavior to that type without modifying it
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Extension function — a single-parameter member or extension callable without a dot or parentheses between operands
  2. B.Extension function — a parameter given a fallback value so callers may omit it at the call site
  3. C.Extension function — a function declared outside a class that adds new callable behavior to that type without modifying it
  4. D.Extension function — a function that accepts another function as a parameter or returns one as its result
Reveal the answer + AI explanation — free account

10. What is Infix function?

Mid
  1. A.a function that accepts another function as a parameter or returns one as its result
  2. B.a single-parameter member or extension callable without a dot or parentheses between operands
  3. C.passing a value by writing its parameter label, allowing reordering and clarity at the call site
  4. D.a function declared outside a class that adds new callable behavior to that type without modifying it
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Infix function — a function that accepts another function as a parameter or returns one as its result
  2. B.Infix function — a single-parameter member or extension callable without a dot or parentheses between operands
  3. C.Infix function — passing a value by writing its parameter label, allowing reordering and clarity at the call site
  4. D.Infix function — a parameter given a fallback value so callers may omit it at the call site
Reveal the answer + AI explanation — free account

13. What is Higher-order function?

Mid
  1. A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
  2. B.a function declared outside a class that adds new callable behavior to that type without modifying it
  3. C.a parameter given a fallback value so callers may omit it at the call site
  4. D.a function that accepts another function as a parameter or returns one as its result
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Higher-order function — a parameter given a fallback value so callers may omit it at the call site
  2. B.Higher-order function — a function that accepts another function as a parameter or returns one as its result
  3. C.Higher-order function — a single-parameter member or extension callable without a dot or parentheses between operands
  4. D.Higher-order function — passing a value by writing its parameter label, allowing reordering and clarity at the call site
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Functions free