Which of the following is not a valid data type in Swift?
What type of reference cycle has been formed in this case?
What will be the output of the following lines of code?
How can we remove a single character from a string at a specified index?
What will be the output of the following code?
What is the correct keyword to declare a fileprivate entity in Swift?
What does every instance of Swift's Character type represent?
What will be the output of the following code?
What will be the output of the following code?
struct SomeStruct {
let mult: Int
subscript(i: Int, j: Int) -> Int {
return mult * i
}
}
var someVal = SomeStruct(mult: 8)
print(someVal[8, 8])
What will be the output of the following lines of code ?
class SomeClass {
var someVar : Int = 20
static var anotherVar: Int = 30
class func someFunc() {
anotherVar = 50
print(anotherVar)
}
}
class OtherClass : SomeClass {
override class func someFunc() {
anotherVar = 90
print(anotherVar)
}
}
var otherInstance = OtherClass()
OtherClass.someFunc()
OnSite
1 Openings
FullTime
Posted 17 days ago