Correct Answer:
public.jpeg
Note: This Question is unanswered, help us to find answer for this one
Is the following code correct?
NSMutableArray *a = [NSMutableArray new];
// do something with a
[a release];
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Is the following code correct?
NSMutableArray *a = [[NSMutableArray new] autorelease];
// do something with a
[a release];
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Is the following code correct?
NSMutableArray *a = [NSMutableArray array];
// do something with a
[a release];
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
If you call interpretKeyEvents:, which of the following method is likely to be called?
Correct Answer:
insertText
Note: This Question is unanswered, help us to find answer for this one
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);
}
*rect2 = rect;
printf("%d\n", rect.size.width);
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Is NSRunLoop thread safe?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Can an object marked for autorelease be retained?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Fill the blank
NSView : <> : NSObject
Correct Answer:
NSResponder
Note: This Question is unanswered, help us to find answer for this one
Can you use NSLock on a POSIX mutex?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
What kind of memory management mechanisms can Cocoa uses?
Correct Answer:
Garbage collection
Reference counting
Manual memory management
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following retrieves the application main bundle?
Correct Answer:
[NSBundle mainBundle]
Note: This Question is unanswered, help us to find answer for this one
Is it possible to create events and dispatch them to the application?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
What is Cocoa?
Correct Answer:
A framework
Note: This Question is unanswered, help us to find answer for this one
Is the following code correct?
- (void)myMethod:(NSString **)s {
*s = [[NSString alloc] init];
}
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
What is true regarding notifications?
Correct Answer:
The object posting the notification does not even have to know whether the observer
exists
An object may receive any message you like from the notification center, not just the
predefined delegate method
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What threading API should be used in Cocoa?
Correct Answer:
NSThread
Note: This Question is unanswered, help us to find answer for this one
Is the following code valid?
NSRect r;
r.size = NSMakeSize(10,10);
r.origin = NSMakePoint(-5, -5);
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Where is the (0,0) coordinate located on the screen?
Correct Answer:
top-left
Note: This Question is unanswered, help us to find answer for this one
Can NSBundle be used to load Java code?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Fill the blank.
NSNotification : <> : NSObject
Correct Answer:
Nothing is required to fill the blank
Note: This Question is unanswered, help us to find answer for this one
Is there a double click event?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
What is a toll-free bridged class?
Correct Answer:
A class that can be interchanged with another class bycasting
Note: This Question is unanswered, help us to find answer for this one
Can resources be localized?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
How can you move a view?
Correct Answer:
By changing the frame with setFrame:
Note: This Question is unanswered, help us to find answer for this one
Why is CGFloat recommenced to be used instead of float?
Correct Answer:
For 64bit compatibility
Note: This Question is unanswered, help us to find answer for this one
Which of the following creates an autoreleased array?
Correct Answer:
[NSMutableArray array];
Note: This Question is unanswered, help us to find answer for this one
What is NSViewHeightSizable constant used for?
Correct Answer:
Autoresizing
Note: This Question is unanswered, help us to find answer for this one
Can POSIX thread be used in Cocoa?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Is it correct to have sibling views overlapping?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
What method should be called before you are able to draw in the drawRect: method of a view?
Correct Answer:
None
Note: This Question is unanswered, help us to find answer for this one
Can a notified object find out from where the notification is coming? (Sending Object)
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
In a typical Cocoa application, do you have to manage your runloop yourself?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Does Cocoa support 64bits?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
What is a notification?
Correct Answer:
An object that encapsulates information about an event
Note: This Question is unanswered, help us to find answer for this one
Is the following code valid?
NSSize s = NSMakeSize(10, 10);
int values[20];
values[s.height] = 5;
Correct Answer:
Compile error
Note: This Question is unanswered, help us to find answer for this one
Can you detach threads in Cocoa?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Can NSDistributedNotificationCenter be used to communicate between multiple machines?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Which of the following classes manages the computer’s global notifications?
Correct Answer:
NSDistributedNotificationCenter
Note: This Question is unanswered, help us to find answer for this one
Fill the blank
NSMutableArray : <> : NSObject
Correct Answer:
NSArray
Note: This Question is unanswered, help us to find answer for this one
What method should be called before you are able to draw outside the drawRect: method of a view?
Correct Answer:
lockFocus
Note: This Question is unanswered, help us to find answer for this one
If you spawn a thread with POSIX thread api, will Cocoa be notified?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
What is NSRect?
Correct Answer:
A structure
Note: This Question is unanswered, help us to find answer for this one
Fill the blank.
NSCountedSet : <> : NSObject
Correct Answer:
NSMutableSet : NSSet
Note: This Question is unanswered, help us to find answer for this one
How is a GUI usually created in Cocoa?
Correct Answer:
With interface builder
Note: This Question is unanswered, help us to find answer for this one
What is the normal way of handling cocoa events?
Correct Answer:
By implementing NSResponder methods in subclasses
Note: This Question is unanswered, help us to find answer for this one
Where should application resources be usually put?
Correct Answer:
Within the application’s bundle
Note: This Question is unanswered, help us to find answer for this one
Which of the following platforms supports Cocoa?
Correct Answer:
Mac OSX
Note: This Question is unanswered, help us to find answer for this one
Can an object be the delegate of multiple objects?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
How wide is unichar on a 32bit machine?
Correct Answer:
16bit
Note: This Question is unanswered, help us to find answer for this one
Can you use malloc/free in a Cocoa application?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Fill the blank.
NSButton : <> : NSObject
Correct Answer:
NSControl : NSView : NSResponder
Note: This Question is unanswered, help us to find answer for this one
What is an observer?
Correct Answer:
An object registered with the notification center
Note: This Question is unanswered, help us to find answer for this one
Can poll() be used to fetch Cocoa events?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
What class should be used to load resources?
Correct Answer:
NSBundle
Note: This Question is unanswered, help us to find answer for this one
Is it mandatory to create an NSAutoreleasePool in a Cocoa application?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Is NSString mutable?
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
In which language is Cocoa written?
Correct Answer:
Objective-C
Note: This Question is unanswered, help us to find answer for this one
Under Mac OS X 10.5, CGRect, CGSize and CGPoint have the same structure as NSRect, NSSize and
NSPoint respectively. Is it true?
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSApp
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
control
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mainframe
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Assistant Navigator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Repeating events
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Code reuse of the views classes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Dock
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSEvent
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
event loop
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Application Kit
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Aqua
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
saving the contents of a window into a file
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
event
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cursor Window
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Set the properties of an object
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSLog
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Core Data
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Darwin
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSLock
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
UITextField
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Project View
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Library Palette
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
UITableView
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
categories
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
selector
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Grand Central Dispatch
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
GDB
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
sets getter/setter methods
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Multithreading
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Next Step
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
changed
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
nib
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
subclassing
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
No object is in reference to the variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Code reuse
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Foundation Kit
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
icons
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSApple
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ASP Textbox
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Interface Builder
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSRedman
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSString
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Helps finds errors in your code.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
AppKit and Foundation
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
OOP allows the coder to reuse and customize existing objects into their new code.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mac
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cocoa Touch
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Xcode
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Possesion.aspx
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Apple
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NS
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
label.text = @"Hello World";
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSLog
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Objective-C
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
iOS SDK
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSColor* houseColor = [housePaintObj color];
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
#import <UIKit/UIKit.h>
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NSObject
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
XCode
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Part of classes interface
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
property list
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Touch Kit
Note: This Question is unanswered, help us to find answer for this one
Cocoa Programming For Mac OS X MCQs | Topic-wise