Test description

This test allows you to evaluate your advanced knowledge of the Swift 5 language.
Topics: data types, class, struct, conditions, syntax.

Sample questions

1
What will be the output on execution of the following code?

var footballTeam = Set<String>()
footballTeam.insert("Player 1")
footballTeam.insert("Player 2")
footballTeam.insert("Player 3")

let footballTeam2 = footballTeam

if footballTeam.isSubset(of: footballTeam2) {
  print("footballTeam is subset")
} else {
  print("footballTeam is not a subset")
}