Functions interview questions

15 Functions questions from the Kotlin bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "a parameter given a fallback value so callers may omit it at the call site"?

Junior
  1. A.Higher-order function
  2. B.Default argument
  3. C.Extension function
  4. D.Infix function

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "passing a value by writing its parameter label, allowing reordering and clarity at the call site"?

Junior
  1. A.Default argument
  2. B.Infix function
  3. C.Named argument
  4. D.Higher-order function

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "a function declared outside a class that adds new callable behavior to that type without modifying it"?

Mid
  1. A.Infix function
  2. B.Named argument
  3. C.Higher-order function
  4. D.Extension function

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

11. Which term means: "a single-parameter member or extension callable without a dot or parentheses between operands"?

Mid
  1. A.Named argument
  2. B.Infix function
  3. C.Default argument
  4. D.Extension function

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "a function that accepts another function as a parameter or returns one as its result"?

Mid
  1. A.Extension function
  2. B.Infix function
  3. C.Default argument
  4. D.Higher-order function

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Functions question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers