Which of the following are valid attributes in Swift?
What indicates/triggers initialization failure in a failable initializer?
What are declaration attributes in Swift?
What is the correct order of class and protocol inheritance in Swift?
When do we use an unowned reference?
For 100% abstraction, C++ provides abstract classes and Java provides interfaces. What is the feature that Swift provides for the same purpose?
What is the correct way to declare an ignorable returning function in Swift?
What will be the output of the following code?
class SomeClass {
var test = 0
}
let someInstance = SomeClass()
someInstance.test = 49
var anotherInstance = someInstance
anotherInstance.test = 50
print(someInstance === anotherInstance)
What will be the output of the following code?
let favoriteGenres: Set<String> = ["Rock", "Classical", "Hip hop"]
favoriteGenres.insert("Hello world")
print(favoriteGenres)
What will be the output of the following code?
let eAcuteQuestion = "caf\u{E9}?"
let combinedEAcuteQuestion = "caf\u{65}\u{301}?"
if eAcuteQuestion == combinedEAcuteQuestion {
print("These two strings are considered equal.")
} else {
print("These two strings are unequal.")
}
OnSite
1 Openings
FullTime
Posted 17 days ago