Can a notified object find out from where the notification is coming? (Sending object)
Can an object be the delegate of multiple objects?
Can an object marked for autorelease be retained?
Can NSBundle be used to load Java code?
Can NSDistributedNotificationCenter be used to communicate between multiple machines?
Can poll() be used to fetch Cocoa events?
Can POSIX thread be used in Cocoa?
Can resources be localized?
Can you detach threads in Cocoa?
Can you use malloc/free in a Cocoa application?
Yes 0.0%
Yes, but only in a separate C library 100.0%
Yes, but we can use only malloc; free is not needed 0.0%
No 0.0%
Can you use NSLock on a POSIX mutex?
Does Cocoa support 64bits?
Fill the blank. NSCountedSet : <> : NSObject
NSArray : NSClass 0.0%
NSMutableArray : NSArray 0.0%
NSMutableSet : NSSet 100.0%
NSSet 0.0%
NSSet : NSArray 0.0%
Fill the blank. NSMutableArray : <> : NSObject
NSSet 0.0%
NSCollection 0.0%
NSArray 100.0%
NSContainer 0.0%
NSMovableArray 0.0%
Fill the blank. NSNotification : <> : NSObject
NSEvent 0.0%
NSCenter 0.0%
NSDistributed 0.0%
NSGeneralNotification 0.0%
Nothing is required to fill the blank 100.0%
Fill the blank. NSView : <> : NSObject
NSWindow 0.0%
NSResponder 100.0%
NSResponder : NSWindow 0.0%
NSRootView 0.0%
NSRoot 0.0%
Fill the blank. NSButton : <> : NSObject
NSControl : 0.0%
NSWidget : NSView : NSResponder 0.0%
NSResponder 0.0%
NSWidget 0.0%
NSControl : NSView : NSResponder 100.0%
How can you move a view?
You cannot 0.0%
By calling move: method 0.0%
By changing the frame with setFrame: 100.0%
None of the above 0.0%
How is a GUI usually created in Cocoa?
With interface builder 100.0%
By editing xml files manually 0.0%
Programmatically 0.0%
None of the above 0.0%
How wide is unichar on a 32bit machine?
8bit 100.0%
16bit 0.0%
32bit 0.0%
64bit 0.0%
128bit 0.0%
If you call interpretKeyEvents:, which of the following method is likely to be called?
collectEvent: 0.0%
dispatchEvent: 0.0%
sendEvent: 0.0%
insertText: 100.0%
None of the above 0.0%
If you spawn a thread with POSIX thread api, will Cocoa be notified?
In a typical Cocoa application, do you have to manage your runloop yourself?
In which language is Cocoa written?
C 0.0%
Objective-C 100.0%
C++ 0.0%
Java 0.0%
Ruby 0.0%
Is it correct to have sibling views overlapping?
Is it mandatory to create an NSAutoreleasePool in a Cocoa application?
Is it possible to create events and dispatch them to the application?
Is NSRunLoop thread safe?
Is the following code correct? - (void)myMethod:(NSString **)s { *s = [[NSString alloc] init]: }
Is the following code correct? NSMutableArray *a = [[NSMutableArray new] autorelease]; // do something with a [a release];
Is the following code correct? NSMutableArray *a = [NSMutableArray array]; // do something with a [a release];
Is the following code correct? NSMutableArray *a = [NSMutableArray new]; // do something with a [a release];
Is the following code correct? NSRect a = NSMakeRect(0, 1, 2, 3) + NSMakeRect(0, 1, 2, 3);
Is the following code valid? NSRect r; r.size = NSMakeSize(10, 10); r.origin = NSMakePoint(-5, -5);
Is the following code valid? NSSize s = NSMakeSize(10, 10); int values[20]; values[s.height] = 5;
Compile error 100.0%
Runtime error 0.0%
Valid code 0.0%
Is there a double click event?
Under Mac OS X 10.5, CGRect, CGSize and CGPoint have the same structure as NSRect, NSSize and NSPoint respectively. Is it true?
What class should be used to load resources?
NSResource 0.0%
NSApplication 0.0%
NSBundle 100.0%
NSFile 0.0%
None of the above 0.0%
What is a notification?
A user event 0.0%
A special message type used within the kernel 100.0%
An object that encapsulates information about an event 0.0%
None of the above 0.0%
What is a toll-free bridged class?
A superclass of another class 0.0%
A class that can be interchanged with another class by casting 100.0%
A wrapper around another class 0.0%
A class with no memory need 0.0%
None of the above 0.0%
What is an observer?
An object that implements the NSObserver protocol 0.0%
An object that sends a notification 0.0%
An object that receives ALL notifications 0.0%
An object registered with the notification center 100.0%
None of the above 0.0%
What is Cocoa?
A language 0.0%
A tree 0.0%
A system 0.0%
A framework 100.0%
None of the above 0.0%
What is NSRect?
A class 0.0%
An object 0.0%
A structure 100.0%
A C built in type 0.0%
An Objective-C built in type 0.0%
What is NSViewHeightSizable constant used for?
Transparency 0.0%
Scrolling 0.0%
Autoresizing 100.0%
Magnification 0.0%
None of the above 0.0%
What is the normal way of handling Cocoa events?
By polling for events 0.0%
By registering an event watcher 0.0%
By implementing NSResponder methods in subclasses 100.0%
None of the above 0.0%
What is true regarding notifications?
They can be dispatched to only one object 50.0%
The object posting the notification does not even have to know whether the observer exists 50.0%
An object may receive any message you like from the notification center, not just the predefined delegate method 0.0%
All of the above 0.0%
None of the above 0.0%
What kind of memory management mechanisms can Cocoa uses?
Garbage collection 0.0%
Reference counting 100.0%
Manual memory management 0.0%
None of the above 0.0%
What method should be called before you are able to draw in the drawRect: method of a view?
None 100.0%
lockFocus 0.0%
lockView 0.0%
prepareDrawing 0.0%
None of the above 0.0%
What method should be called before you are able to draw outside the drawRect: method of a view?
None 0.0%
lockView 0.0%
lockFocus 100.0%
prepareView 0.0%
None of the above 0.0%
What threading API should be used in Cocoa?
CFThread 0.0%
pthread 0.0%
pth 0.0%
NSThread 100.0%
None of the above 0.0%
What will be the output of the following code? NSRect rect = NSMakeRect(0, 0, 10, 10); NSRect *rect2 = malloc(sizeof(*rect2)); if(!rect2) { NSLog(@"Not enough memory."); exit(EXIT_FAILURE)...
0 0.0%
10 0.0%
RUNTIME ERROR 0.0%
COMPILATION ERROR 0.0%
None of the above 100.0%
Where is the (0,0) coordinate located on the screen?
top-left 0.0%
top-right 0.0%
bottom-left 100.0%
bottom-right 0.0%
center 0.0%
Where should application resources be usually put?
In /System 0.0%
In /Library 0.0%
Within the application's bundle 100.0%
In /Resources 0.0%
None of the above 0.0%
Which of the following classes manages the computer's global notifications?
NSNotificationCenter 0.0%
NSDistributedNotificationCenter 100.0%
NSGlobalNotificationCenter 0.0%
NSSystemNotificationCenter 0.0%
Which of the following creates an autoreleased array?
[NSMutableArray array]; 0.0%
[NSMutableArray new]; 100.0%
[[NSMutableArray alloc] init]; 0.0%
Which of the following is a valid Uniform Type Identifier?
JPEG 0.0%
.jpg 0.0%
public.jpeg 100.0%
image/jpeg 0.0%
.jpeg 0.0%
Which of the following platforms supports Cocoa?
Windows 0.0%
Linux 0.0%
Mac OSX 100.0%
Solaris 0.0%
None of the above 0.0%
Which of the following retrieves the application main bundle?
[NSBundle mainBundle] 100.0%
[NSApplication mainBundle] 0.0%
[NSApp mainBundle] 0.0%
None of the above 0.0%
Why is CGFloat recommenced to be used instead of float?
They are the same; so it's done only to make the code look nicer. 0.0%
CGFloat is a special structure used to do arbitrary number computation. 0.0%
For 64bit compatibility. 100.0%
None of the above 0.0%