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.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is not comprised in UIKit

  1. Event handling
  2. Hardware API’s
  3. Application runtime
  4. Collection classes
Question 2 Multiple Choice (Single Answer)

Which of the following refers to the current controllers object iphone

  1. This
  2. Super
  3. Self
  4. Delegate
Question 3 Multiple Choice (Single Answer)

Which is correct way of string declaration in objective C

  1. String str =”cocoa”;
  2. NSString *str =@”cocoa”;
  3. NSString str= “cocoa”;
  4. NSString* str=@”cocoa”;
Question 4 Multiple Choice (Single Answer)

Which of the following is not supported in objective C

  1. Encaplulation
  2. Polymorphism
  3. Multiple Inheritence
  4. Method overriding
Question 5 Multiple Choice (Single Answer)

Which technique for memory management is used in objective C

  1. Reference counting
  2. Automatic garbage collection
  3. Both a and b
  4. None
Question 6 Multiple Choice (Single Answer)

Which among the following is the root class

  1. NSString
  2. NSObject
  3. NSControl
  4. NSButton
Question 7 Multiple Choice (Single Answer)

Which among the following is not included in Foundation framework

  1. NSString
  2. NSDictionary
  3. NSArray
  4. UIButton
Question 8 Multiple Choice (Single Answer)

Which among hte following is not included in Iphone SDK

  1. Xcode
  2. Iphone simulator
  3. Built-in control
  4. Interface builder
Question 9 Multiple Choice (Single Answer)

We can obtain the getter and setter methods of property using

  1. @interface and @implement
  2. @property and @synthesis
  3. @category and @protocol
  4. none
Question 10 Multiple Choice (Single Answer)

which among the following is the correct way of method declaration

  1. -(void)setPrice:(float)newPrice;
  2. -(void)setPrice:float newPrice;
  3. -void setPrice:(float)newPrice;
  4. -void setPrice:float newPrice;
Question 11 Multiple Choice (Single Answer)

Syntax of declaring a property accessor method is

  1. @property <type> <name>;
  2. @property (<parameters>) <type> <name>;
  3. @property (<parameters>) <name>;
  4. none
Question 12 Multiple Choice (Single Answer)

Which among the following does not come under the category of property declarartion attributes

  1. Writability
  2. Setter Semantaics
  3. Readability
  4. Atomicity Semantics
Question 13 Multiple Choice (Single Answer)

Which keyword should be invoked upon assignment to take the ownership of the object

  1. assign
  2. retain
  3. readwrite
  4. copy
Question 14 Multiple Choice (Single Answer)

Which is not a mouse method in a protocol

  1. -(void) mouseUp: (NSEvent *) theEvent;
  2. -(void) mouseDown: (NSEvent *) theEvent;
  3. -(void) mouseDragged: (NSEvent *) theEvent;
  4. -(void) mouseClick: (NSEvent *) theEvent;
Question 15 Multiple Choice (Single Answer)

Which is the latest Mac OS X released by Apple

  1. Snow leopard version 10.6.0
  2. Snow leopard version 10.5.2
  3. Snow leopard version 10.5.0
  4. Snow leopard version 10.0.0
Question 16 Multiple Choice (Single Answer)

Which of the following in method’s name does not return a retained object

  1. Copy
  2. Alloc
  3. New
  4. Init
Question 17 Multiple Choice (Single Answer)

What is NSURLRequest

  1. Encapsulates a URL to load and caching policy for fetched data
  2. Load a URL.
  3. To fetch the data from the URL link
  4. None
Question 18 Multiple Choice (Single Answer)

Which is the first method called by UIWebViewDelegate

  1. - (void)webViewDidStartLoad:(UIWebView *)webView;
  2. - (void)webViewDidFinishLoad:(UIWebView *)webView;
  3. - (void)webView:(UIWebView *)webViewdidFailLoadWithError:(NSError *)error;
  4. None
Question 19 Multiple Choice (Single Answer)

What is the main class that support the MAP

  1. MKMapView
  2. UIMapView
  3. MKUIMapView
  4. none
Question 20 Multiple Choice (Single Answer)

Keys used to switch between programs from left to right.

  1. Alt + Page Up
  2. Alt + Page Down
  3. Alt + Home
  4. Alt + Insert