What is LLVM?
Can value types inherit in Swift?
Can we overload initializers in Swift?
What are the two methods used when defining subscripts?
What are the two property observers we can use in Swift?
Why do we use the class keyword to declare type methods in classes?
What will be the data types of var1 and var2 respectively in the code given below?
var var1 = 5
var var2 = 5.0
What happens when you declare a failable initializer in a protocol in Swift?
What is the main use of tuples in Swift?
What will be the output of the following Swift code?
func test(_ arr: [Int]) -> (min: Int, max: Int) {
return (arr.min()!, arr.max()!)
}
let something = test([1, 2, 3, 4, -1])
print(something.min, something.max)
OnSite
1 Openings
FullTime
Posted 17 days ago