Is the statement var test = nil a valid one in Swift?
What is the keyword used to upcast or downcast variables in Swift?
Where will private properties be accessible in Swift?
What will be the output of the following code?
let greeting = "Guten Tag!"
print(greeting[greeting.endIndex - 1])
Which of the following is not mandatory in Swift?
What will be the output of the following lines of code ?
struct Test {
var x : Int = 0
mutating func mutatingFunction() {
x+=1
}
}
var test = Test(x: 10)
print(test.x)
Which of the following is the correct way to call the given function in Swift?
What platforms currently support the compilation and execution of code written in Swift?
If we don't define the value of a property at the time of declaration in a property wrapper, how do we provide a value to the property wrapper members?
What will be the output of the following code ?
let var1 = "This is code in swift language."
let var2 = """
This is another line.
This is second line.
"""
let var3 = var1 + var2
print(var3)
OnSite
1 Openings
FullTime
Posted 17 days ago