Cocoa programming for Mac OS X 10.5 Test
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?
Can you use NSLock on a POSIX mutex?
Does Cocoa support 64bits?
Fill the blank. NSCountedSet : <> : NSObject
Fill the blank. NSMutableArray : <> : NSObject
Fill the blank. NSNotification : <> : NSObject
Fill the blank. NSView : <> : NSObject
Fill the blank. NSButton : <> : NSObject
How can you move a view?
How is a GUI usually created in Cocoa?
How wide is unichar on a 32bit machine?
If you call interpretKeyEvents:, which of the following method is likely to be called?
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?
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 NSString mutable?
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;
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?
What is a notification?
What is a toll-free bridged class?
What is an observer?
What is Cocoa?
What is NSRect?
What is NSViewHeightSizable constant used for?
What is the normal way of handling Cocoa events?
What is true regarding notifications?
What kind of memory management mechanisms can Cocoa uses?
What method should be called before you are able to draw in the drawRect: method of a view?
What method should be called before you are able to draw outside the drawRect: method of a view?
What threading API should be used in Cocoa?
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)...
Where is the (0,0) coordinate located on the screen?
Where should application resources be usually put?
Which of the following classes manages the computer's global notifications?
Which of the following creates an autoreleased array?
Which of the following is a valid Uniform Type Identifier?
Which of the following platforms supports Cocoa?
Which of the following retrieves the application main bundle?
Why is CGFloat recommenced to be used instead of float?