iOS 5 App Development Objective C MCQs

iOS 5 App Development Objective C MCQs

The following iOS 5 App Development Objective C MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of iOS 5 App Development Objective C. We encourage you to answer these 30 multiple-choice questions to assess your proficiency.
Please continue by scrolling down.

1: [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.

A.   UIViewController

B.   Instance of UIView or one of its subclasses

C.   Arguments[message]

D.   Data

2: SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?

A.   Instantiation from scratch

B.   To give it someone else - or another object

C.   The array becomes an owner of that object and has a pointer to it.

D.   C Functionn

3: Origin of a views coordinate system is _ left

A.   Count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject

B.   Delegates and dataSources

C.   Instance variables

D.   Upper

4: If you implemented both the setter and getter - the @synthesize method...

A.   Ready-made instances - instantiation from scratch - and nib based instantiation

B.   CF - Ref

C.   Subview(s)

D.   Will be ignored

5: A responder is responsible for...

A.   Wait until the loop finishes processing the event - at the end release it

B.   Designated initializer

C.   Receiving and handling events that are associated with it

D.   Class

6: When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....

A.   View controller's initialization method

B.   Define it in the implemenation file

C.   Hash table - Look up objects using a key to get a value.

D.   Pointer to an object

7: To load a Xib file manually - you use _

A.   Initializers

B.   Anytime you call a method with new - alloc or copy. You own and must release that object.

C.   NSBundle

D.   A mechanism to enable specific callbacks

8: Reducing details to focus on the core concepts

A.   Abstraction

B.   @interface ClassName:SuperClassName

C.   Continue

D.   Variable scope - if defined within a block

9: If you have extra work you want to do on the view...

A.   Anytime you call a method with new - alloc or copy. You own and must release that object.

B.   Variable scope - if defined within a block

C.   Maintenance of state

D.   Do so in viewDidLoad

10: An instance is a device for maintaining state. It's a box for _ of data.

A.   @synthesize

B.   Create a XIB file

C.   Storage

D.   Is a placeholder object

11: In Cocoa Touch - the table view asks another object _ what it should display...

A.   Retain

B.   Its dataSource

C.   Implementation

D.   Abstraction

12: If the view has no subviews - create it programmatically; if it has subviews

A.   The instance variables

B.   Message

C.   Create a XIB file

D.   They need to be defined in the implementation file

13: Files Owner...

A.   Data source - view controller and delegate

B.   Instantiation from scratch

C.   ViewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear

D.   Is a placeholder object

14: Super - is used...

A.   UIView

B.   NSCoder

C.   Rectangular

D.   For inheritance - adopting the superclasses implementation

15: A UITableView usually needs three different pieces...

A.   NSLog routine

B.   Safety - subclassability and makes code look more consistent with C structs

C.   Data source - view controller and delegate

D.   Data source - delegate and view controller

16: When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.

A.   Its dataSource

B.   First responder

C.   Only the innermost loop in which the break is executed is terminated

D.   CGRect

17: Class methods do not operate on an _ or have any access to _ variables....

A.   Instance

B.   Implementation

C.   You always return the newly initialized object(return self)

D.   They need to be defined in the implementation file

18: NSString* s2 = [s uppercase String]; Is an example of what kind of instance?

A.   Ready-Made Instance

B.   Initializer

C.   Class

D.   A single-array can contain objects of different types

19: Also - because arrays only hold a pointer to an object...

A.   Array[class - NSMutableArray]

B.   A mechanism to enable specific callbacks

C.   Initializers

D.   A single-array can contain objects of different types

20: A view represents a _ area

A.   Used to find the time right now or to store past or future time/dates

B.   A mechanism to enable specific callbacks

C.   Calling code that does the instantiation for you

D.   Rectangular

21: A command directed to an object is called an...

A.   Designated initializer

B.   Message

C.   Core Graphics Framework

D.   The message release to all its entries

22: How do I implement my drawRect?

A.   Core Graphics Framework

B.   Header files declare

C.   Variable scope - if defined within a block

D.   NSCoder

23: A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.

A.   Instance variables

B.   Lowercase - uppercase

C.   Object

D.   Used to find the time right now or to store past or future time/dates

24: UIViewController has several methods that get called at certain times...

A.   Object

B.   Instance variables

C.   ViewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear

D.   Upper

25: NSSet...

A.   Object

B.   Data source - delegate and view controller

C.   View

D.   Unordered collection of objects - objects must be unique

26: Any other initializer a class has calls the _ designated initializer....

A.   28. Also if you send the NSObject the _ message - you own that object.

B.   Group of global functions already assigned to this class

C.   Variable scope - if defined within a block

D.   Anytime you call a method with new - alloc or copy. You own and must release that object.

E.   Retain

27: When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....

A.   Super - self

B.   Nil

C.   Initializer

D.   Instance variables

28: Id is a...

A.   Cannot be added to an array

B.   Encapsulation of functionality

C.   Pointer to an object

D.   Instance variables

29: The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.

A.   Hash table - Look up objects using a key to get a value.

B.   Wait until the loop finishes processing the event - at the end release it

C.   'getters' and 'setters'

D.   Data Encapsulation

30: A view is an...

A.   Retain

B.   Instance of UIView or one of its subclasses

C.   Generic object wrapper for other non-object data types

D.   Selector[message]