What data types are commonly used to store QR codes in Swift?
What will be the output of the following lines of code?
How to declare failable initializers in Swift?
Which category of programming languages does Swift belong to?
Which of the following is the half-open range operator in Swift?
Which of the following is a valid overriding operation in Swift?
What are compound cases in switch statements in Swift?
Which line of code gives access to the main thread in iOS?
What will be the output of the following lines of code ?
struct SomeStruct {
let mult : Int
subscript(i : Int)-> Int {
mult * i
}
}
var someVal = SomeStruct(mult: 8)
print(someVal[8])
What will be the output of the following lines of code ?
func add(arg: Int)->Int{
return arg+1
}
func sub(arg: Int)->Int{
return arg-1
}
func test(arg: Bool)->(Int)->Int {
return arg ? add : sub
}
func nested(input: Int){
let newFunc = test(arg: input>0)
print(newFunc(input))
}
nested(input: -5)
1: -6
2: -4
3: Either of those depending on the system
4: None of the above
OnSite
1 Openings
FullTime
Posted 17 days ago