Question 1. What Do You Understand By Cocoa?
Cocoa is a set of object-oriented software program libraries that increase OSX and iOS apps. Cocoa is an application environment and a runtime device where apps are advanced using Swift language and Objective C. Objective C is based out of ANSI C. While developing a cocoa utility, ANSI C code can be mixed with Objective C code. Cocoa programs can also encompass C++ code.
Cocoa has 3 frameworks specifically-
Foundation framework which a part of the middle provider layer.
App Kit framework.
Core records framework.
Question 2. Elaborate On The Meaning Of Application Kit?
Application kit is a framework that consists of all of the objects and information had to implement the graphical and occasion-driven consumer interface. It also manages all the facts because it draws on the display correctly, communicates with hardware devices and clear areas of the display screen earlier than drawing. You can choose at which degree you want to apply the utility kit. Create connections from person interface gadgets to utility gadgets with the assist of interface builder. Control the user interface programmatically and implement your own gadgets sub classing NSView.
IPHONE APPS Interview Questions
Question three. What Does Cocoa Offers?
Cocoa gives severa benefits to its customers. It supports event-driven behavior that helps in handling packages, windows, and workspaces. In interface builder, cocoa has a big pool of consumer interface items. UI gadgets like home windows, buttons, tables, etc may be dragged and dropped from interface builder or may be created the use of code.
Cocoa helps the subsequent:-
Handles undo and redo management.
Basic printing to enhance printing consisting of content material formatting and pagination.
Different text representations and application preferences.
Concurrency, lazy loading.
Question 4. Enlist The Different Layers Of Mac Osx?
The unique layers of MAC OSX are as follows:-
Application services like graphics and media:
IPHONE APPS Tutorial
Question 5. What Are The Performance Tools Available For Cocoa Application Development?
The following performance tools are to be had for cocoa utility improvement:
Instruments- The devices are used to show memory data, CPU usage, disk facts, and network information and thread sports.
Big top-Big tops display the graph performance traits
Malloc debug- This gives us an insight into how plenty reminiscence is allocated to exceptional features. It tells us how plenty reminiscence a characteristic is consuming and additionally finds leaks by using checking allotted reminiscence that is not referenced everywhere in the application.
Shark- Shark music function calls and graphs reminiscence allocation.
Quartz debug- It helps debug packages that do big quantities of drawing.
Android Interview Questions
Question 6. Elaborate Foundation Framework. Enlist Its Important Features?
Foundation framework affords a set of beneficial object lessons and also introduces several paradigms that aren't included by means of Objective-C language. The foundation framework defines the bottom for Objective-C training. It aids the assignment of software improvement by means of facilitating steady conventions for deallocation. To enhance portability, Foundation framework offers a layer of OS independence. The basis framework is grouped into price gadgets, collections, notifications, highlight queries, predicates, and expressions, etc.
Some of the notable features of basis framework are as follows:
It helps object endurance and object distribution.
The foundation magnificence hierarchy t is routed at NSObject magnificence with NSObject and NSCopying protocols.
With Unicode strings and bundle technology, basis framework supports internationalization and localization.
Question 7. State The Important Classes In Cocoa?
There are several lessons in cocoa. The extremely good ones are:-
NSNumber: it represents objects that include integers, doubles, and floats.
NSDate: it is used for displaying dates and times in numerous formats.
NSXMLParser: it's miles used to technique XML statistics.
NSArray: it makes use of zero-primarily based indexing for an ordered collection of gadgets.
Android Tutorial Mac OS X Deployment Interview Questions
Question eight. What Is The Meaning Of Core Data?
Core information is a Cocoa framework that helps in managing item graphs and persistent garage. It saves model gadgets to a persistent keep and also facilitates to fetch them. The important motive of middle records is the managed gadgets that are the instances of NSManagedObject.
Question 9. Highlight The Differences Between Cocoa And Cocoa Touch?
Cocoa is an utility framework that assists in the development of applications in MAC OS X environment. It is an amalgamation of two frameworks particularly Appkit framework and Foundation Framework.
Cocoas touch is an utility framework for Apple merchandise like iPad, iPhone and iPod Touch. It is largely a aggregate of Foundation Framework and UIKit Framework.
IOS Interview Questions
Question 10. Differentiate Between Objective-c And C/c++?
In Objective-C, the technique and the variable have to be of exactly the same name.
The message overloading is faked via naming a parameter and we have to mangle the names manually.
Objective-C does no longer have references.
In Objective-C, templates are not available.
For differentiating among magnificence methods, Objective-C uses + and -.
In C++, the call of the method and the variable has to be different.
C++ does the identical paintings but instead of doing it manually, the compiler does the call mangling for us.
C++ enjoys a bonus over Objective-C in relation to references.
Templates are to be had in C++ because C++ has robust typing and static bidding.
For differentiating between magnificence methods, C++ makes use of static to specify the manufacturing facility method.
Question 11. What Are Cocoa Touch Key Frameworks For Developing Applications?
Cocoa contact has some frameworks and it looks like:
App Kit framework
Core facts framework
Push Kit Framework
Event Kit UI Framework
Message UI Framework
And so on
UI Developer Interview Questions
Question 12. What Are The Differences Between Cocoa Touch And Cocoa?
Cocoa contact is an software framework for Apple merchandise like iPad, iPhone and iPod Touch.
Cocoa is an software framework that enables inside the development of applications in MAC OS X surroundings.
Both Cocoa and Cocoa Touch take a seat on top of different collections of frameworks to create the API stacks.
For Application Framework:-
Cocoa is the utility framework for Mac OS X.
Cocoa Touch is the software framework for iPhone and iPod Touch.
Cocoa - Foundation and Appkit
Cocoa Touch - Foundation and UIKit
Cocoa - All the lessons utilized in Cocoa have the NS prefix Exp: NSTextField
Cocoa Touch - instructions utilized in Cocoa have the UI prefix Exp: UITextField
For MVC patterns:–
Cocoa - Cocoa has more than one opportunity layout patterns – further to MVC.
Cocoa Touch - The iPhone SDK has a reinforced MVC device, which performs better than the default MVC in Cocoa.
IPHONE APPS Interview Questions
Question 13. What Does Cocoa Touch Offers?
Cocoa touch helps event-pushed behavior that enables in handling applications, windows, and workspaces.
Cocoa has a person interface objects like windows, buttons, tables, and so on. These capabilities can drag and dropped from interface builder and its code created automatically.
Cocoa helps the following :-
Drawing and imaging
Handles undo and redo management
Content formatting and pagination
Data exchange using Copy Paste and Drag Drop
Audio and Video the use of QuickTime framework
CSS Advanced Tutorial
Question 14. What Is Xcode?
XCode is the engine that powers Apple IDE (included improvement surroundings) for OSX and iOS.
Question 15. What Are The Important Classes In Cocoa?
There are many greater classes are to be had:-
CSS Advanced Interview Questions
Question 16. What Frameworks Those Make Cocoa?
Appkit (Application Kit)
Swift Programming Tutorial
Question 17. What Are The Differences Between Copy And Mutable Copy?
Copy constantly creates an immutable reproduction.
Mutable Copy continually creates a mutable replica.
Swift Programming Interview Questions
Question 18. What Are The Differences Between Alloc And New?
The alloc creates a brand new reminiscence area however does now not initialize it in comparison to new.
Android Interview Questions
Question 19. Which One Is Thread-safe-atomic Or Non-atomic?
Immutable items are generally thread-safe.
For instance: NSString.
Objective C Tutorial
Question 20. What Are The Differences Between Release And Pool Drain?
The launch frees a reminiscence. The drain releases the NSAutoreleasePool itself.
Objective C Interview Questions
Question 21. What Are The Differences Between @belongings And @synthesize?
The @assets - announces a property.
The @synthesize - creates getter and setter strategies for a assets
For Example, @property floats price;
Question 22. What Are The Relation Between Ivar And @belongings?
The iVar are just instance variables. It can't be accessed until we create assessors, which can be generated by using @assets.
The iVar and its counterpart @belongings may be of different.
Question 23. What’s The Nscoder Class Used For?
The NSCoder is an abstract elegance which represents.
Phonegap Interview Questions