Feb

Cocoa Touch Interview Questions
- PD Singh
- 14th Feb, 2023
- 552 Followers
Cocoa Touch Interview Questions
Cocoa Touch is a user interface (UI) framework that provides an abstraction layer of the operating system (iOS) of the iPhone, iPod touch, and iPad. Cocoa touch is primarily written in an Objective-C language and is used for building software applications for Apple products like iPhone, iPad and iPod Touch. It is based on Mac OS X and the high-level application programming interfaces help in making animations, networking and adding the appearance of the native platform to the developed applications.
If you’re in search of cocoa jobs, then you’re at the right place. We’ve listed the most sought-after cocoa-touch interview questions that are sure to help you out. If you’re planning to sit for an interview, then look no further and delve straight into the below-furnished question and answers.
Read best Cocoa Touch Interview Questions and Answers
1) What do you understand by cocoa?
- Foundation framework which a part of the core service layer.
- App Kit framework.
- Core data framework.
2) Differentiate between Objective-C and C/C++.
Objective-C | C++ |
In Objective-C, the method and the variable have to be of exactly the same name. | In C++, the name of the method and the variable has to be different. |
The message overloading is faked by naming a parameter and we have to mangle the names manually. | C++ does the same work but instead of doing it manually, the compiler does the name mangling for us. |
Object-C doesn’t have references. | C++ enjoys an advantage over Objective-C when it comes to references. |
in Objective-C, templates are not available. | Templates are available in C++ because C++ has strong typing and static bidding. |
For differentiating between class methods, Objective-C uses + and -. | For differentiating between class methods, C++ uses static to specify the factory method. |
3) Elaborate on the meaning of Application Kit.
4) What does cocoa offers?
Cocoa supports the following-
- Internationalization.
- Handles undo and redo management.
- Basic printing to advance printing such as content formatting and pagination.
- Different text representations and application preferences.
- Concurrency, lazy loading.
5) Enlist the different layers of MAC OSX.
User Experience
- Aqua
- Spotlight
- Dashboard
- Accessibility
Application services like graphics and media
- Core image
- Core video
- Quartz
- OpenGL
Core services
- Carbon core
- Core foundation
- Foundation
Application frameworks
- Applet
- Java
- Carbon
6) What are the performance tools available for cocoa application development?
- Instruments- the instruments are used to display memory statistics, CPU usage, disk data, network statistics and thread activities.
- Big top-big tops show the graph performance trends
- Malloc debug- This gives us an insight into how much memory is allocated to different functions. It tells us how much memory a function is consuming and also finds leaks by checking allocated memory that is not referenced anywhere in the program.
- Shark- shark tracks function calls and graphs memory allocation.
- Quartz debug- it helps debug applications that do large amounts of drawing.
7) Elaborate foundation framework. Enlist its important features.
Foundation framework provides a set of useful object classes and also introduces several paradigms that are not covered by Objective-C language. The foundation framework defines the base for Objective-C classes. It aids the task of software development by facilitating consistent conventions for deallocation. To enhance portability, Foundation framework provides a layer of OS independence. The foundation framework is grouped into value objects, collections, notifications, spotlight queries, predicates, and expressions, etc.
Some of the notable features of foundation framework are as follows:
- It supports object persistence and object distribution.
- The foundation class hierarchy t is routed at NSOject class with NSObject and NSCopying protocols.
- With Unicode strings and bundle technology, foundation framework supports internationalization and localization.
8) State the important classes in cocoa.
- NSNumber: it represents objects that contain integers, doubles, and floats.
- NSDate: it is used for displaying dates and times in various formats.
- NSXMLParser: it is used to process XML data.
- NSArray: it uses zero-based indexing for an ordered collection of objects.
9) What is the meaning of core data?
10) Highlight the differences between cocoa and cocoa touch.
Cocoas touch is an application framework for Apple products like iPad, iPhone and iPod Touch. It is basically a combination of Foundation Framework and UIKit Framework.
Leave A Comment :
Valid name is required.
Valid name is required.
Valid email id is required.