Swift Quiz # 12

Instructions
Quiz: Swift Quiz # 12
Subject: Basic Swift
Total Questions: 7 MCQs
Time: 7 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Swift Quiz # 12
Question 1 of 7
00:00
  • What is the value of val after this code is executed? let i = 5; let val = i * 6.0

  • What is printed to the console when this code is executed? "t".forEach { (char) in; print(char) }

  • What enumeration feature allows them to store case-specific data? (Question does not make that much sense though. )

  • In the code below, AOM must be a(n)? class AmP : MMM, AOM { }

  • What is the value of numbers in the code below? let numbers = [1,2,3,4,5,6].filter{ $0 % 2 == 0}

  • What is the type of vals in this code? let vals = ["a", 1, "Hi"]

  • How can you extract val to x in tuple vt? let vt = (name: "ABC", val: 5)

Liked this quiz? Share it with friends:

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it