Swift Interview Questions – Set 03

What is lazy stored procedure in Swift and when is it used? Lazy stored properties are used for a property whose initial values are not calculated until the first time it is used. A lazy stored property can be declared by writing the lazy modifier before its declaration. Lazy properties are useful when the initial … Read more

Swift Interview Questions – Set 02

How can you make a property optional in Swift? We have to declare a question mark ??’ in the code to make a property optional. If a property doesn’t have a value, then the symbol ? helps to avoid the runtime error. What are the different collection types available in Swift? There are two varieties … Read more

Swift Interview Questions – Set 01

What type of literals does Swift language have? A Swift literal is a direct value of a variable or a constant. It may be a number, character or string. Literals are used to initialize or assign value to variables or constants. What is the usage of switch statement in Swift language? Switch statement are used … Read more

Swift Interview Questions

Swift Interview Questions – Set 03 Swift Interview Questions – Set 02 Swift Interview Questions – Set 01