1. What is the correct syntax to declare a function in Kotlin?
Kotlin uses the fun keyword to declare functions, followed by the function name, parameters in parentheses, colon and return type, and the function body in curly braces. The return type can be omitted if the function returns Unit (equivalent to void in Java), and for single-expression functions you can use equals sign syntax without curly braces. Kotlin's function syntax is more concise than Java's, and the return type comes after the function signature unlike Java where it comes before. This syntax makes functions first-class citizens in Kotlin and enables features like higher-order functions and lambdas.