var myVar = 100
myVar = "Hello World"
print(varA)
The output will be
Correct Answer: Compile time error
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Swift Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Swift MCQ Questions
print(myStr) What will be the output of the above code snippet?
var varB = 3.14159ng is the c, varB is inferred to be of type _____
A closure is a function without a name.
Can cyclical relationships exist in value types?
A sequence of characters surrounded by double quotes is called _____?
Which is correct regarding Swift enumeration members when they are defined?
What keyword is used to indicate a custom operator that will appear in between two targets, similar to the addition operator in this example? var sum = 10 + 10
What is used to import Objective-C files into Swift?
In context of a Swift subscript, which of the following is correct?
Which of these could be an appropriate protocol declaration in Swift?