Top 15 Ios Development With Swift 2 Interview Questions You Must Prepare 02.Mar.2024

Multiple line comments can be written as forward-slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/).

It supports any kind of data and not only Synchronizes it, but also checks for equality. The Switch statement must be exhaustive, which me that you have to cover all possible values for your variable.

The let keyword is used to declare constants, while var is used for declaring variables.

Xcode is Apple’s integrated development environment (IDE) that you use to design apps for Apple products. It provides various tools to manage your entire development workflow from creating your app, to testing, submitting and optimizing it to the App store.

The question mark (?) is used during the declaration of a property. It tells the compiler that this property is optional and whether the property may hold a value or not.

GCD is the most commonly used API to manage concurrent code and execute operations asynchronously at the UNIX level of the system. GCD provides and manages queues of tasks.

Multiple line comments can be written as forward-slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/).

MVC is a design pattern that stands for Model View Controller. This design pattern separates the data from its display, mediated by a View Controller.

Delegates are a design pattern. A delegate is just an object that another object sends messages to when certain things happen.

The guard statement evaluates a Boolean condition and proceeds with program execution if the evaluation is true.

Reusability of an already allocated object.

A synchronous function returns only after the completion of a task that it orders.

An asynchronous function, on the other hand, returns immediately, ordering the task to be done, but not waiting for it.

To provide a default value for a variable.

Core Data is an object graph manager, which also has the ability to persist object graphs to a persistent store, on a disk.

Control trfer statements used in Swift include −

  • Break
  • Continue
  • Fallthrough
  • Return