What is the file extension of a program written in Swift?
What is the file extension for an interface builder file?
Which type of method in Swift allows you to change the properties of value types?
What are autoclosures in Swift used for?
Are property observers called when the value of a property is set within an initializer?
What is the correct way in Swift to declare an empty array of integer type?
Which of the following is allowed in protocols but is not conventionally used?
What will be the output of the following lines of code ?
var letters = Set<Character>()
letters.insert(“a")
letters = []
print(type(of: letters))
What happens when you try to access properties of a class from within the deinitializer?
What will be the output of the following lines of code?
class SomeClass {
var someVar: Int = 20
static var anotherVar: Int = 30
func someFunc() {
SomeClass.anotherVar = 50
}
}
var someInstance = SomeClass()
someInstance.someFunc()
print(SomeClass.anotherVar)
OnSite
1 Openings
FullTime
Posted 17 days ago