InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is The Purpose Of The Reuseidentifier? |
|
Answer» REUSABILITY of an ALREADY ALLOCATED OBJECT. Reusability of an already allocated object. |
|
| 2. |
What Are Delegates? |
|
Answer» DELEGATES are a design pattern. A delegate is just an object that another object sends MESSAGES to when CERTAIN things HAPPEN. Delegates are a design pattern. A delegate is just an object that another object sends messages to when certain things happen. |
|
| 3. |
What Is Mvc? |
|
Answer» 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. 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. |
|
| 4. |
What Is Synchronous Vs. Asynchronous In Gcd? |
|
Answer» 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. 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. |
|
| 5. |
What Is Gcd? How Is It Used? |
|
Answer» 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. 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. |
|
| 6. |
What Is A Guard Statement In Swift? |
|
Answer» The GUARD statement evaluates a Boolean CONDITION and PROCEEDS with program execution if the evaluation is true. The guard statement evaluates a Boolean condition and proceeds with program execution if the evaluation is true. |
|
| 7. |
What Is The Difference Between Let And Var In Swift? |
|
Answer» The LET KEYWORD is used to DECLARE constants, while var is used for DECLARING variables. The let keyword is used to declare constants, while var is used for declaring variables. |
|
| 8. |
What Is The Use Of Double Question Marks (??)? |
|
Answer» To PROVIDE a DEFAULT VALUE for a VARIABLE. To provide a default value for a variable. |
|
| 9. |
What Is The Question Mark (?) In Swift? |
|
Answer» 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. 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. |
|
| 10. |
What Is The Characteristics Of Switch In Swift? |
|
Answer» 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. 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. |
|
| 11. |
What Are The Control Transfer Statements Used In Swift? |
|
Answer» Control transfer statements USED in SWIFT INCLUDE −
Control transfer statements used in Swift include − |
|
| 12. |
What Are The Collection Types Available In Swift? |
|
Answer» Multiple LINE comments can be written as FORWARD-slash FOLLOWED by an ASTERISK (/*) and END with an asterisk followed by a forward slash (*/). Multiple line comments can be written as forward-slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/). |
|
| 13. |
How Multiple Line Comments Can Be Written In Swift? |
|
Answer» Multiple line COMMENTS can be WRITTEN as forward-SLASH followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/). Multiple line comments can be written as forward-slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/). |
|