Elance Cocoa Programming for Mac OSX Test Answers 2015

There is only one computer you can code iOS on. Which is it?
Mac
ASUS
Dell
XBox360


In the Interface Builder, the _______ contains stock items in Cocoa that you can drag-and-drop into your application.
Menu Bar
Document Window
Library Palette
Application Window


_______ is Cocoa's integrated development environment (IDE).
Dock
Aqua
Interface Builder
XCode


There is only one computer you can code IOS on. Which is it?
Dell
Mac
ASUS
Xbox360


The Cocoa API for iOS is called?
Chocolate Cake
Cocoa Gesture
JellyBean
Cocoa Touch


________ is the preferred language for Cocoa applications.
Objective-C
PHP
Java
C++


What IDE does iOS use?
Apple
Eclipse
Xcode
Visual Studio


True or False? The two most important Mac OS X developer tools are XCode (formerly Project Builder) and Interface Builder.
True
False


Before you can begin,you must download and install the ____.
Windows OS
iOS SDK
ZIP FILE
Microsoft Word


Which language are iOS apps coded in?
Objective-C
C++
C#.Net
J2EE


What is the proper statement?
label.text = @"Hello World";
label.text = &"Hello World";
label.text = @"Hello World",
label.text = @"Hello World":


Which extension file is NOT in use in Xcode?
Possesion.aspx
Possesion.m
Possession.xib
Possession.h


Which is the correct statement:
int x = 0:
int x == 0:
integer x == 0;
int x = 0;


Which statement is correct:
NSColor* houseColor = [housePaintObj color];
NSColor* houseColor = [housePaintObj color]]
NSColor* houseColor = [housePaintObj color]\
NSColor* houseColor = [housePaintObj color].


All of Cocoa's built in classes start with:
NS
MS
postive attitude
A letter


_______ provides Cocoa as its object-oriented appliciation programming interface (API).
Microsoft
Oracle
Sun
Apple


Does the current iOS version support multitasking?
Yes
No


True or False? Cocoa uses the Model-View-Controller (MVC) design pattern.
False
True


Which is the correct statement:
&import <UIKit/UIKit.h
$import <UIKit/UIKit.h>
()import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>


Which objects DO exist in the Cocoa framework?
NSLog
MSLog
KSLog
LSLog


Which one is NOT a UI control in Xcode?
View Controller
ASP Textbox
Page View Controller
Label


The Cocoa Framework is OOP. Why is that helpful?
OOP allows the coder to reuse and customize existing objects into their new code.
Its not worth the time to learn
You cannot reuse code once it exists
Everytime you want to uses code that someone has written, you have to rewrite every line


Which statement is correct:
NSString* myXstring%
NSString* myXstring;
NSString* myXstring,
NSString* myXstring.


______ is the root class for most classes in the Objective-C class hierarchy.
NSLog
NSResponder
NSEvent
NSObject


AutoReleasePool BEST refers to:
Exception classes
Xcode functionality
Oracle
Memory Management


Which statement is correct:
/ (void)drawRect:(NSRect)rect
- (void)drawRect:(NSRect)rect
- [void]drawRect:(NSRect)rect
! (void)drawRect:(NSRect)rect


Which Cocoa class is used to create a string?
NSLog
MSString
NSString
MSLog


What framework(s) make up Cocoa?
MVC
Spring
System.Web
AppKit and Foundation


What is protocol?
Part of classes interface
Used in Java
Not used
A list of variables


What does a debugger do?
It is used to create UIViews in Xcode
It is used to troubleshoot OS problems with iPad
Helps finds errors in your code.
It sets up your iOS environment


Which objects do NOT exist in the Cocoa framework?
NSRedman
NSString
NSMutableDictionary
NSLog


________ is used to create application interfaces and make connections between interface objects.
Dock
Aqua
XCode
Interface Builder


Application ______ are stored in a file with a .icns extension.
headers
includes
icons
nibs


OOP stands for Object Oriented Programming. It is used for:
Its an installer to download XCode from the internet and build on your Mac
It will send your completed app project to the App Store.
In Xcode its called the Simulator which allows you to test your mobile apps in a virtual environment
Code reuse


Which objects are NOT part of Cocoa framework?
NSMutableDictionary
NSApple
NSPoint
NSSting


A ________ is a list of information read by applications while they are launching.
property list
method
function
class


The ________ is a framework that defines a base layer of Objective-C classes.
Aqua
Application Kit
Core Data
Foundation Kit


What does the term "nil" mean in reference to a variable?
It doesn't affect the value of a variable at all.
"nil" is only used inreference to exception management
"nil" is incorrect it should be dispose
No object is in reference to the variable


Imutable objects can't be__:
started
moved
changed
disposed


True or False? NSDictionary objects can be changed after initialization.
False
True


A _________ file stores all information about an application's user interface objects.
class
category
header
nib


The "NS" in NSObject stands for:
Name Steve
Next Step
Nasa Studios
Nothing Short


Whenever you customize an existing class, it is called:
Architecting
subclassing
Programming
Disposing


What are atomic and nonatomic associated with?
iPhone 3
Exception handling
Mac Lion
Multithreading


True or False? Objective-C classes are objects.
False
True


The most commonly used debugger used with Cocoa is ______.
Mac OS X
Visual Studio debugger
Aqua
GDB


True or False? A Cocoa program may not be compiled from a command-line prompt.
False
True


A property:
a characteristic
A list of variables
A point in time
sets getter/setter methods


What does GCD stand for?
General Code Destroyer
Great Central Dispatcher
Grand Control Display
Grand Central Dispatch


Which statement is correct:
@interface GCWhatUp : NSView {} @end
@interface GCWhatUp : NSView [] @end
@interface GCWhatUp : MSView {} @end
@interface GCWhatUp ' NSView {} @end


True or False? Cocoa allows you to move objects in the main nib to other separate nibs to improve load performance.
False
True


What is the proper statement?
#import "MyCodeAppDelegate.h"
&import "MyCodeAppDelegate.h"
#import "MyCodeAppDelegate.h"...
#import "MyCodeAppDelegate.h";


Objective-C uses the concept of ______ which allows modifications to an existing class in-place.
class copying
categories
private classes
inheritance


In Objective-C, methods are represented by a ______ which is a string describing the method to call.
object
cursor
selector
category


True or False? Objective-C does not have a constructor or destructor.
False
True


True or False? Objective-C is a static typed language.
True
False


__________ is NOT one of the Cocoa Objective-C object libraries.
Core Data
Application Kit
Foundation Kit
Touch Kit


Which control wold you want to use as a data source?
UITableView
label
Button
View Controller


In the XCode window, the _____ lists files, search results, and build settings.
Project View
Interface Builder
Document Window
File View


______ class will implement a mutex.
NSLock
NSResponder
NSApplication
NSCell


_______ is the object persistence framework included with Foundation Kit.
Core Data
Project Builder
Application Kit
Interface Builder


Which control can the user add a small piece of data?
Label
View Controller
Button
UITextField


______ is Apple's computing infrastructure that consists of Mach, Unix services, and Mac OS X networking and filesystems.
Aqua
Darwin
Cocoa
Interface Builder


_______ class allows you to journal events in your application.
NSDocument
NSLog
NSResponder
NSApplication


True or False? Memory management is completely automatic.
False
True


A Cocoa ______ is a message and a corresponding object sent to an application in response to some action taken by the user.
class
selector
nib
event


In Xcode, what does the Identity Inspector do?
Inspects your code for errors
None of the Above
Find the identity of the programmer
Set the properties of an object


______ is NOT a type of Mac OS X on-screen window.
Cursor Window
Document Window
Utility Window
Dialog


The Mac OS X graphical user interface (GUI) is called _________.
iOS
Aqua
Objective-C
Cocoa


The ______ is a section of code that reads events and performs appropriate functions for those events.
main nib
event loop
NSResponder
NSEvent


True or False? NSNumber objects cannot be changed after initialization.
True
False


The ________ is a framework that contains all the objects needed to implement a graphical event-driven user interface.
Foundation Kit
Core Data
Application Kit
Core Functions


NSDocument class is used for ______.
loading a saved file
printing the contents of a window
alerting a user who tries to close an edited window without first saving
saving the contents of a window into a file


The Mac OS X _______ replaces the Mac OS 9 Application menu.
Menu Bar
Dock
Controls
Document Window


_______ is not a subclass of NSResponder.
NSView
NSApplication
NSWindow
NSEvent


What does the Interface Builder in Xcode do?
Create the View class manually
It cannot create views
Reuse of the Button object, but need to code it each time you need it.
Code reuse of the views classes


________ are NOT a Cocoa event.
Periodic events
Mouse events
Repeating events
Keyboard events


Which one is not a Navigator in Xcode?
Symbol Navigator
Project Navigator
Assistant Navigator
Issue Navigator


Which does not belong in web infrastructure:
Mainframe
Web server
Smartphone
Database


A ______ object sends a message automatically to a target when an on-screen object is manipulated.
control
responder
nib
selector


The ________ object is the application's main controlling object.
NSApp
NSDocument
NSWindow
NSApplication

No comments:

Post a Comment