Wednesday 25 April 2018

IOS Interview Question

1. What Is Xcode?

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.

2. How Multiple Line Comments Can Be Written In Swift?

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

3. What Are The Collection Types Available In Swift?

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

4. What Are The Control Transfer Statements Used In Swift?

Control transfer statements used in Swift include −
    • Break
    • Continue
    • Fallthrough
    • Return

5. What Is The Characteristics Of Switch In Swift?

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

6. What Is The Question Mark (?) In Swift?

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.

7. What Is The Use Of Double Question Marks (??)?

To provide a default value for a variable.

8. What Is The Difference Between Let And Var In Swift?

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

9. What Is A Guard Statement In Swift?

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

10. What Is Gcd? How Is It Used?

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.

11. What Is Synchronous Vs. Asynchronous In Gcd?

  • 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.

12. What Is Mvc?

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.

13. What Are Delegates?

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

14. What Is Core Data?

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

15. What Is The Purpose Of The Reuseidentifier?

Re-usability of an already allocated object.

More about IOS:

No comments:

Post a Comment