Are you in search of COCOA Jobs? Then you are at the right place. We provide you with the complete COBOL interview Question and Answers on our page. Cocoa is Apple's native object-oriented application programming interface (API) for their operating system macOS. or iOS, tvOS, and watchOS, a similar API exists, named Cocoa Touch. There are numerous leading companies that offer various job positions in cocoa api like iOS Developer, Senior iOS Developer, Cocoa QA Engineer, Software Engineer, GIT Systems Developer, Foundation Engineer and many more. To clear any interview, you must prepare well for interview, so we provide a complete and tricky Interview questions on our page. To know more about interview question and answers and for various positions in Cocoa Api visit our website Wisdomjobs.com.
Answer :
Cocoa has 3 core frameworks:
Question 2. What Does Cocoa Offer?
Answer :
Event Driven Behavior – Cocoa provides the infrastructure for event driven behavior.
It helps manage application, windows and workspaces
Has a rich library of user interface objects available in Interface builder. UI Objects can be dragged dropped from the interface builder or can be created from code. Some sample UI objects are (buttons, tables, views, windows, panels, drawers, segmented control etc).
Supports the following:
Question 3. What Are The Different Layers Of The Mac Osx?
Answer :
The Mac OSX is layered into the following:
User Experience:
Application Frameworks:
Graphics and Media (Application Services):
Core Services:
Question 4. What Is The Main Development Environment For Cocoa?
Answer :
Answer :
XCode is the engine that powers Apple’s integrated development environment (IDE) for OSX and iOS.
Using XCode developers can:
Question 6. What Are The Compiling Options In Xcode?
Answer :
Question 7. What Is Interface Builder?
Answer :
Interface builder is a graphical tool for creating user interfaces.
Has the following design element:
Question 8. What Are The Performance Tools Available For Cocoa Application Development?
Answer :
Instruments : Instruments can be used to show the following
Shark: Traces function calls and graphs memory allocation.
Big Top: Graphs performance trends.
Spin Control: Gathers information about what the application was doing when the rainbow spinner appeared.
Malloc Debug: Shows how much memory the application is consuming and which functions allocated large amounts of memory. Also helps find leaks by finding allocated memory that is not referenced anywhere in the program.
Quartz Debug: helps debug applications that do large amounts of drawing and imaging.
Question 9. What Are The Primary Cocoa Frameworks Required To Build A Cocoa Application?
Answer :
There are two main frameworks required for building Cocoa Applications:
Question 10. What Is Foundation Framework; Specify Some Of Its Features?
Answer :
The Foundation framework defines a base layer of classes that can be used for any type of Cocoa program.
Foundation framework is designed for:
The Foundation Framework is logically grouped into Categories.
Value Objects:
Collections:
Operation System Services:
Notifications
Archiving and Serialization
XML Processing – NSXML
Predicates and Expressions – NSPredicate, NSCompoundPredicate, NSComparisonPredicate.
Spotlight Queries NSMetadataItem. NSMetadataQuery.
Question 11. What Is Appkit Framework; Specify Some Of Its Features?
Answer :
Appkit framework is needed for implementing graphical, event -driven user interface in OSX like window, buttons, panels, menus, scroller, text field, table views etc.
The root of the Appkit framework is the NSResponder class.
Appkit is divided primarily into these areas:
Text and Fonts – NSFont, NSFontManager.
Graphics and Colors – NSImage, NSColor, NSColorPanel. NSColorWell, NSGraphicsContext, NSBezierPath etc.
Printing and Faxing (NSPrinter, NSPrintPanel, NSPageLayout, NSPrintInfo).
Document and File System Support NSFileWrapper, NSFileManager.
Sharing Data with other applications – NSPasteBoard.
Drag & Drop.
Spell Check – NSSpellServer.
Question 12. What Is The Basic Difference Between The Foundation And The Appkit Framework?
Answer :
Foundation (Foundation. Framework):
Application Kit (AppKit.Framework):
Question 13. What Are The Root Classes In Cocoa?
Answer :
The root class does not inherit from any other class and all other classes inherit from the root class.
The root class primarily accesses and interacts with the objective C runtime.
Cocoa has two root classes:
Question 14. State Some Of The Important Classes In Cocoa?
Answer :
NSNumber: Can instantiate object that contains integers, floats or doubles.
NSDate: For storing streams of bytes, writing data objects to the file system and reading from them.
NSDate: Displaying dates, times in many formats. Time adjustments based on time zones.
NSString: Different representation of character strings such as UTF-8 etc.
NSAttributedString: Supports strings with attributes such as font etc.
NSArray: Ordered collection of objects, uses zero based indexing.
NSDictionary: Managing key value pairs, Dictionaries are unordered and must contain unique keys.
NSSet: Similar to NSArray but unsorted. Contains distinct objects.
NSFileManager: Used for file operations.
NSThread: Used for creating multithreaded programs.
NSOperation & NSOperationQueue : To perform multiple operations (concurrent & Non-Concurrent) in priority and dependence order.
NSXMLParser: To process XML Data.
NSXML: Used to represent a XML document as a hierarchical tree.
Question 15. What Is Core Data?
Answer :
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.