Filter interviews by
I applied via Internshala and was interviewed before Jun 2023. There was 1 interview round.
Structs are value types, classes are reference types in Swift.
Structs are passed by value, classes are passed by reference.
Structs are copied when assigned to a new variable, classes are not.
Structs do not support inheritance, classes do.
I applied via Approached by Company and was interviewed before Nov 2023. There was 1 interview round.
Delegates and notification center are key components in iOS development for communication between objects and broadcasting events.
Delegates are used for one-to-one communication between objects, allowing one object to act on behalf of another.
Notification center is used for broadcasting events to multiple objects, allowing for loosely coupled communication.
Delegates are commonly used in UITableView and UICollectionView...
Weak references do not keep a strong hold on an object, allowing it to be deallocated if no strong references exist.
Weak references are used to avoid retain cycles in iOS development.
Strong references keep a strong hold on an object, preventing it from being deallocated as long as the strong reference exists.
Weak references are declared as 'weak var' or 'weak let', while strong references are the default in Swift.
Examp...
I applied via Referral and was interviewed before Apr 2023. There was 1 interview round.
Top trending discussions
I applied via Naukri.com and was interviewed in Sep 2020. There were 4 interview rounds.
Classes and structures are both used to define custom data types, but they have some key differences.
Classes are reference types, while structures are value types.
Classes support inheritance, while structures do not.
Classes have deinitializers, while structures do not.
Classes have reference counting for memory management, while structures do not.
Classes can have optional property types, while structures cannot.
Retain cycle is a memory management issue where objects reference each other and cannot be released. It can be avoided by using weak or unowned references.
Retain cycle occurs when two or more objects hold strong references to each other.
To avoid retain cycle, use weak or unowned references instead of strong references.
Weak references do not increase the reference count of an object and automatically become nil when the...
Opinion binding is a legal doctrine that requires judges to follow the decisions of higher courts in similar cases.
Opinion binding is also known as stare decisis.
It helps to ensure consistency and predictability in the legal system.
For example, if a higher court has already ruled that a certain law is unconstitutional, lower courts must follow that ruling in similar cases.
Opinion binding can be controversial, as it can...
GCD and Operation Queues are both used for concurrent programming in iOS, but differ in their approach.
GCD is a C-based API that uses a thread pool model for concurrency.
Operation Queues are built on top of GCD and provide a higher-level abstraction for concurrency.
GCD is best for simple, lightweight tasks, while Operation Queues are better for more complex tasks with dependencies.
GCD uses blocks for task execution, wh...
The life cycle of iOS applications refers to the stages an app goes through from launch to termination.
The app is launched by the user or system
The app enters the foreground and becomes active
The app can be sent to the background or suspended
The app can be terminated by the user or system
The app can be resumed from the background or suspended state
The app can receive memory warnings and handle them appropriately
The UIViewController life cycle consists of several stages that occur when the view controller is loaded and unloaded.
viewDidLoad() - called when the view controller's view is loaded into memory
viewWillAppear() - called just before the view appears on the screen
viewDidAppear() - called just after the view appears on the screen
viewWillDisappear() - called just before the view disappears from the screen
viewDidDisappear()...
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There was 1 interview round.
Optional is a type in Swift that can hold a value or be nil. Struct and class are both used to define custom data types.
Optional is denoted by a question mark (?) and is used to handle nil values.
Structs are value types and are passed by value, while classes are reference types and are passed by reference.
Structs have a default memberwise initializer, while classes do not.
Classes can inherit from other classes, while s...
I applied via Naukri.com and was interviewed in Aug 2021. There was 1 interview round.
I applied via Company Website
I applied via Approached by Company and was interviewed in Feb 2024. There was 1 interview round.
Find second greatest number from an array of duplicate items.
ARC (Automatic Reference Counting) in Swift is a memory management system used to automatically manage memory allocation and deallocation.
ARC keeps track of how many references there are to an object and automatically deallocates it when there are no more references.
Use strong reference cycles can lead to memory leaks, so use weak or unowned references to break the cycle.
ARC is the default memory management system in S...
Automatic Reference Counting (ARC) manages memory in iOS apps, ensuring efficient resource use and preventing memory leaks.
ARC automatically tracks and manages the app's memory usage.
Objects are deallocated when there are no strong references to them.
Use 'weak' references to avoid retain cycles, e.g., delegate properties.
Example: 'var delegate: MyDelegate?' is a weak reference.
ARC simplifies memory management compared ...
MVVM (Model-View-ViewModel) is an architectural design pattern commonly used in iOS development to separate concerns and improve code maintainability.
MVVM separates the user interface (View) from the business logic (ViewModel) and data (Model).
ViewModel acts as an intermediary between the View and the Model, handling user interactions and updating the data.
Swift provides tools like Combine framework for reactive progra...
based on 3 interview experiences
Difficulty level
Duration
TCS
Accenture
Wipro
Cognizant