MCQs > IT & Programming > Swift > What is the return type in the following declaration: func potteryBarn (name: String, score: Int) -> String { return 'Hello (name)! Your score is (score).'}

Swift MCQs

What is the return type in the following declaration: func potteryBarn (name: String, score: Int) -> String { return "Hello (name)! Your score is (score)." }

Answer

Correct Answer: String

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it