Add office photos
Engaged Employer

Jio

3.9
based on 21.9k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

Blackcoffer Interview Questions and Answers

Updated 2 Mar 2024
Popular Designations

Q1. what is mvvm architecture in ios

Ans.

MVVM is a design pattern that separates UI code from business logic and data models.

  • MVVM stands for Model-View-ViewModel

  • Model represents the data and business logic

  • View displays the UI and user interactions

  • ViewModel acts as a mediator between Model and View

  • ViewModel exposes data and commands to View

  • MVVM helps in testability, maintainability and scalability of code

Add your answer

Q2. What is URLSession, Explain with code

Ans.

URLSession is a class in iOS that allows you to make network requests and handle responses.

  • URLSession is used to create tasks for fetching data from the internet.

  • It supports various types of tasks such as data tasks, download tasks, and upload tasks.

  • You can configure URLSession with URLSessionConfiguration to customize its behavior.

  • Example: URLSession.shared.dataTask(with: url) { (data, response, error) in }

Add your answer

Q3. what is mvc architecture

Ans.

MVC is a software architecture pattern that separates an application into three interconnected components: Model, View, and Controller.

  • Model represents the data and business logic of the application

  • View displays the data to the user and handles user input

  • Controller handles user input and updates the model and view accordingly

  • MVC promotes separation of concerns and modularity

  • Example: iOS app with a login screen - Model would handle user authentication, View would display the l...read more

Add your answer

Q4. What is codable?

Ans.

Codable is a protocol in Swift that allows for easy encoding and decoding of data types to and from external representations.

  • Codable protocol is used to convert custom data types to and from external formats like JSON, plist, etc.

  • It combines Encodable and Decodable protocols, making it easier to work with data serialization and deserialization.

  • Example: struct Person: Codable { var name: String }

  • Example: let jsonData = try JSONEncoder().encode(person)

Add your answer
Discover Blackcoffer interview dos and don'ts from real experiences

Q5. Concept of Closure

Ans.

Closure is a function that captures variables from its surrounding scope, allowing them to be accessed even after the function has finished executing.

  • Closure allows functions to access variables from their parent functions even after the parent functions have finished executing.

  • It helps in maintaining state in asynchronous operations.

  • Example: A function returning another function that uses variables from the outer function.

Add your answer

Q6. Array based program

Ans.

Program to manipulate an array of strings

  • Use built-in array methods like push, pop, shift, unshift, splice for manipulation

  • Iterate through the array using loops like for loop or forEach

  • Use array methods like filter, map, reduce for more complex operations

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top IOS Developer Interview Questions from Similar Companies

3.8
 • 12 Interview Questions
2.7
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter