Objective-C and iOS Development
Test your knowledge of Objective-C programming, iOS frameworks (UIKit, Foundation), memory management, and iPhone SDK components with these development questions.
Questions
Which of the following is not comprised in UIKit
- Event handling
- Hardware API’s
- Application runtime
- Collection classes
Which of the following refers to the current controllers object iphone
- This
- Super
- Self
- Delegate
Which is correct way of string declaration in objective C
- String str =”cocoa”;
- NSString *str =@”cocoa”;
- NSString str= “cocoa”;
- NSString* str=@”cocoa”;
Which of the following is not supported in objective C
- Encaplulation
- Polymorphism
- Multiple Inheritence
- Method overriding
Which technique for memory management is used in objective C
- Reference counting
- Automatic garbage collection
- Both a and b
- None
Which among the following is the root class
- NSString
- NSObject
- NSControl
- NSButton
Which among the following is not included in Foundation framework
- NSString
- NSDictionary
- NSArray
- UIButton
Which among hte following is not included in Iphone SDK
- Xcode
- Iphone simulator
- Built-in control
- Interface builder
We can obtain the getter and setter methods of property using
- @interface and @implement
- @property and @synthesis
- @category and @protocol
- none
which among the following is the correct way of method declaration
- -(void)setPrice:(float)newPrice;
- -(void)setPrice:float newPrice;
- -void setPrice:(float)newPrice;
- -void setPrice:float newPrice;
Syntax of declaring a property accessor method is
- @property <type> <name>;
- @property (<parameters>) <type> <name>;
- @property (<parameters>) <name>;
- none
Which among the following does not come under the category of property declarartion attributes
- Writability
- Setter Semantaics
- Readability
- Atomicity Semantics
Which keyword should be invoked upon assignment to take the ownership of the object
- assign
- retain
- readwrite
- copy
Which is not a mouse method in a protocol
- -(void) mouseUp: (NSEvent *) theEvent;
- -(void) mouseDown: (NSEvent *) theEvent;
- -(void) mouseDragged: (NSEvent *) theEvent;
- -(void) mouseClick: (NSEvent *) theEvent;
Which is the latest Mac OS X released by Apple
- Snow leopard version 10.6.0
- Snow leopard version 10.5.2
- Snow leopard version 10.5.0
- Snow leopard version 10.0.0
Which of the following in method’s name does not return a retained object
- Copy
- Alloc
- New
- Init
What is NSURLRequest
- Encapsulates a URL to load and caching policy for fetched data
- Load a URL.
- To fetch the data from the URL link
- None
Which is the first method called by UIWebViewDelegate
- - (void)webViewDidStartLoad:(UIWebView *)webView;
- - (void)webViewDidFinishLoad:(UIWebView *)webView;
- - (void)webView:(UIWebView *)webViewdidFailLoadWithError:(NSError *)error;
- None
What is the main class that support the MAP
- MKMapView
- UIMapView
- MKUIMapView
- none
Keys used to switch between programs from left to right.
- Alt + Page Up
- Alt + Page Down
- Alt + Home
- Alt + Insert