What is the return type of the following code? func nameFunc() -> String { return "Jhon" }
Correct Answer: String
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Swift Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Swift MCQ Questions
What is the correct way to import Objective-C files into Swift?
What does Swift compile to?
Please check following code and tell what can be problem? import UIKitvarintVar:Int?=3 intVar = nil varstrVar:StringstrVar = nil
Closures capture ____ reference of objects by default
Objective-C nullable properties will appear as __ properties when imported to Swift project.
Which is the correct optional form of a down cast operator?
What are the names of the input parameters in the following function: func potteryBarn (name: String, score: Int) -> String {return 'Hello (name)! Your score is (score).'}
What is the return type in the following declaration: func potteryBarn (name: String, score: Int) -> String { return 'Hello (name)! Your score is (score).'}
What is the result of the following code? func potteryBarn (name: String, score: Int) -> String { return 'Hello (name)! Your score is (score).' } potteryBarn ('Tom' , 2)
When declaring a function, what symbol is used to indicate that an internal parameter name should also be used as an external parameter?