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.
A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
B.a function declared outside a class that adds new callable behavior to that type without modifying it
C.a parameter given a fallback value so callers may omit it at the call site
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
A.Higher-order function
B.Default argument
C.Extension function
D.Infix function
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Default argument — passing a value by writing its parameter label, allowing reordering and clarity at the call site
B.Default argument — a function that accepts another function as a parameter or returns one as its result
C.Default argument — a parameter given a fallback value so callers may omit it at the call site
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
A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
B.a parameter given a fallback value so callers may omit it at the call site
C.a function declared outside a class that adds new callable behavior to that type without modifying it
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
A.Default argument
B.Infix function
C.Named argument
D.Higher-order function
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Named argument — passing a value by writing its parameter label, allowing reordering and clarity at the call site
B.Named argument — a function declared outside a class that adds new callable behavior to that type without modifying it
C.Named argument — a single-parameter member or extension callable without a dot or parentheses between operands
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
A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
B.a function that accepts another function as a parameter or returns one as its result
C.a single-parameter member or extension callable without a dot or parentheses between operands
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
A.Infix function
B.Named argument
C.Higher-order function
D.Extension function
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Extension function — a single-parameter member or extension callable without a dot or parentheses between operands
B.Extension function — a parameter given a fallback value so callers may omit it at the call site
C.Extension function — a function declared outside a class that adds new callable behavior to that type without modifying it
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
A.a function that accepts another function as a parameter or returns one as its result
B.a single-parameter member or extension callable without a dot or parentheses between operands
C.passing a value by writing its parameter label, allowing reordering and clarity at the call site
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
A.Named argument
B.Infix function
C.Default argument
D.Extension function
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Infix function — a function that accepts another function as a parameter or returns one as its result
B.Infix function — a single-parameter member or extension callable without a dot or parentheses between operands
C.Infix function — passing a value by writing its parameter label, allowing reordering and clarity at the call site
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
A.passing a value by writing its parameter label, allowing reordering and clarity at the call site
B.a function declared outside a class that adds new callable behavior to that type without modifying it
C.a parameter given a fallback value so callers may omit it at the call site
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
A.Extension function
B.Infix function
C.Default argument
D.Higher-order function
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Higher-order function — a parameter given a fallback value so callers may omit it at the call site
B.Higher-order function — a function that accepts another function as a parameter or returns one as its result
C.Higher-order function — a single-parameter member or extension callable without a dot or parentheses between operands
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.