FullStackFSCCafé
 
 
Sign in with GoogleSign in with Google. Opens in new tab
Kill Your Tech Interview
3877 Full-Stack, Algorithms & System Design Interview Questions
Answered To Get Your Next Six-Figure Job Offer
      
🤖 Having Machine Learning & DS Interview? Check  MLStack.Cafe - 1704 Data Science & ML Interview Questions & Answers!Having ML & DS Interview? Check 🤖 MLStack.Cafe - 1704 ML & DS Interview Questions and Answers

Top 43 Objective-C Interview Questions

Entry Junior Mid Senior Expert
Sign in with GoogleSign in with Google. Opens in new tab
Topic Progress:

Theoretical Questions

Q1:   

Name four important data types found in Objective-C

  
Add to PDF   Entry 
Q2:   

What is the difference between copy and retain?

  
Add to PDF   Junior 
Q3:   

What is a protocol, and how do you define your own and when is it used?

  
Add to PDF   Junior 
Q4:   

What is the reuseIdentifier used for?

  Related To: iOS
Add to PDF   Junior 
Q5:   

What are Objective-C Categories?

  
Add to PDF   Junior 
Q6:   

Explain types of protocol in Objective-C

  
Add to PDF   Junior 
Q7:   

What are blocks and how are they used?

  
Add to PDF   Junior 
Q8:   

A grandparent, parent and child problem

  Related To: iOS
 Add to PDF   Mid 
Q9:   

What's the difference between the atomic and nonatomic attributes?

  
 Add to PDF   Mid 
Q10:   

What are some limitations and problems you can face with categories?

  
 Add to PDF   Mid 
Q11:   

What is Key-Value-Coding and Key-Value-Observing in Objective-C?

  
 Add to PDF   Mid 
Q12:   

What is the difference between inheritance and Categories in Objective-C?

  
 Add to PDF   Mid 
Q13:   

When would you use Categories over Inheritance and vice versa?

  
 Add to PDF   Mid 
Q14:   

What mechanisms does iOS provide to support multi-threading?

  Related To: iOS
 Add to PDF   Mid 
Q15:   

What is difference between these three classes [NSManagedObject, NSManagedObjectContext, NSManagedObjectModel] of CoreData?

  
 Add to PDF   Mid 
Q16:   

What is the purpose of managed object context NSManagedObjectContext in Objective-C and how does it work?

  
 Add to PDF   Mid 
Q17:   

When to use NSArray vs NSSet?

  
 Add to PDF   Mid 
Q18:   

What is the difference between NSDictionary and NSMutableDictionary?

  
 Add to PDF   Mid 
Q19:   

What is the difference between ARC (automatic reference counting) and GC (garbage collection)?

  Related To: iOS, Swift
 Add to PDF   Senior 
Q20:   

Explain the difference between interfaces, delegates, and protocols in Objective-C

  
 Add to PDF   Senior 
Q21:   

What's the difference between using a delegate and notification?

  Related To: iOS
 Add to PDF   Senior 
Q22:   

Why delegate is never retained?

  
 Add to PDF   Senior 
Q23:   

What are the differences between implementing a @property with @dynamic or @synthesize?

  
 Add to PDF   Senior 
Q24:   

What are the reasons for using NSOperationQueue over GCD and vice versa?

  Related To: iOS
 Add to PDF   Senior 
Q25:   

What is the difference between NSMapTable vs NSDictionary?

  
 Add to PDF   Senior 
Q26:   

What is @autoreleasepool?

  Related To: iOS
 Add to PDF   Senior 
Q27:   

How to create an abstract class in Objective-C?

  
 Add to PDF   Senior 
Q28:   

What happens when you invoke a method on a nil pointer?

  
 Add to PDF   Senior 
Q29:   

Which is the best of GCD, NSThread or NSOperationQueue?

  Related To: iOS
 Add to PDF   Expert 
Q30:   

What are limitations of NSDictionary?

  
 Add to PDF   Expert 
Q31:   

What was wrong with the NSEnumerator technique and why NSFastEnumeration was introduced?

  
 Add to PDF   Expert 
Q32:   

Explain method swizzling. When you would use it?

  
 Add to PDF   Expert 
Q33:   

Why and in which conditions should we use @autoreleasepool?

  Related To: iOS
 Add to PDF   Expert 
Q34:   

Explain the use case when ARC won't help you to release memory (but GC will)?

  Related To: iOS, Swift
 Add to PDF   Expert 
Q35:   

What is Dynamic Dispatch and how does it work in Objective-C?

  
 Add to PDF   Expert 
Q36:   

What's the difference between marking a method as @objc vs dynamic, when would you do one vs the other?

  Related To: Swift
 Add to PDF   Expert 
Q37:   

What sending a message to nil means and how is it actually useful?

  
 Add to PDF   Expert 

Code Challenges

Q1:   

How to convert an NSArray to a string in Objective-C?

  
 Add to PDF   Junior 
Q2:   

Find the bug in the Objective-C code below. Explain your answer.

  
  Add to PDF   Mid 
Q3:   

What is the bug in this code and what is its consequence?

  
  Add to PDF   Mid 
Q4:   

How can I reverse a NSArray in Objective-C?

  
  Add to PDF   Mid 
Q5:   

What happens when the following code executes?

  
  Add to PDF   Expert 
Q6:   

Will the code below log areEqual or areNotEqual. Explain why?

  
  Add to PDF   Expert 
 

Rust has been Stack Overflow’s most loved language for four years in a row and emerged as a compelling language choice for both backend and system developers, offering a unique combination of memory safety, performance, concurrency without Data races...

Clean Architecture provides a clear and modular structure for building software systems, separating business rules from implementation details. It promotes maintainability by allowing for easier updates and changes to specific components without affe...

Azure Service Bus is a crucial component for Azure cloud developers as it provides reliable and scalable messaging capabilities. It enables decoupled communication between different components of a distributed system, promoting flexibility and resili...

Cosmos DB has gained popularity among developers and organizations across various industries, including finance, e-commerce, gaming, IoT, and more. Follow along and learn the 24 most common and advanced Azure Cosmos DB interview questions and answers...
More than any other NoSQL database, and dramatically more than any relational database, MongoDB's document-oriented data model makes it exceptionally easy to add or change fields, among other things. It unlocks Iteration on the project. Iteration f...
Unit Tests and Test Driven Development (TDD) help you really understand the design of the code you are working on. Instead of writing code to do something, you are starting by outlining all the conditions you are subjecting the code to and what outpu...
Domain-Driven Design is nothing magical but it is crucial to understand the importance of Ubiquitous Language, Domain Modeling, Context Mapping, extracting the Bounded Contexts correctly, designing efficient Aggregates and etc. before your next DDD p...
At its core, Microsoft Azure is a public cloud computing platform - with solutions including Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) that can be used for services such as analytics, virtual c...
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. Follow along to refresh your knowledge and explore the 52 most frequently asked and advanced Node JS Interview Questions and Answers every...
Dependency Injection is most useful when you're aiming for code reuse, versatility and robustness to changes in your problem domain. DI is also useful for decoupling your system. DI also allows easier unit testing without having to hit a database and...