To declare a constant in Swift you would use:
Correct Answer: let
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
If we have a class named MyClass with a nested enum called Status, declared like so: class MyClass { enum Status { case On, Off } }
What is a mutating instance method in Swift?
Which keyword do you use to define a class?
Which is not a control transfer statement in Swift?
What is the correct way to compare the equality of two String type objects in Swift?
Problem with code? import UIKit let fm = NSFileManager.defaultManager() fm.removeItemAtPath('file.old')
Use the classes defined above to create a new Person instance, and try to access its numberOfRooms property as before?
Output? import UIKit var str1:String?='text1'; var str2:String='text2'; var int1:Int?=111; var int2:Int=222; var array:String[] = [str1, str2, int1, int2]; array=[];
Extensions can add new instance ____?
Output when the file doesn’t exist? import UIKit let filename:String = 'testfile'; var readdata:String = 'test data';