What will be the output of the following code?
What is the output of the following code?
let arr: Array = ["m", "n"]
arr.append("o")
print(arr[2])
What keyword should you use to declare a non-mutating function in a protocol?
When are convenience initializers used in Swift?
What are the two elements on which Swift's access control model is based?
What will be the output of the following Swift code?
What are the user-defined data types commonly used to implement protocol composition in Swift?
Which of the following is an invalid overriding operation in Swift?
What will be the output of the following Swift code?
var array = [Int]()
let someFunction = { array.append(5) }
print(array.count)
someFunction()
print(array.count)
OnSite
1 Openings
FullTime
Posted 17 days ago