MCQs > IT & Programming > Swift > Output ? enum Abc [ case Mark case John case Andrew case Lucy

Swift MCQs

What will be the output of the following Apple Swift code?

enum Abc [

case Mark

case John

case Andrew

case Lucy

case June

case Kate

]

enum Class [

case First. Second. Third. Fourth. Fifth. Sixth. Seventh

1

var n1 = Abc.Lucy

n1 = .John

print(n1)

let sp = Class.Sixth

sp = .Third

switch sp {

case .Third:

print("Perrnitted to the cricket ground")

default:

print("Not Permitted to the cricket ground")

]


Answer

Correct Answer:

Code will give compilation error.  

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