MCQs > IT & Programming > IOS 5 App Development Objective C MCQs > Basic iOS 5 App Development Objective C MCQs

Basic iOS 5 App Development Objective C MCQ

1. A view is an...

Answer

Correct Answer: Instance of UIView or one of its subclasses

Note: This Question is unanswered, help us to find answer for this one

2. 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.

Answer

Correct Answer: Data Encapsulation

Note: This Question is unanswered, help us to find answer for this one

3. Id is a...

Answer

Correct Answer: Pointer to an object

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Super - self

Note: This Question is unanswered, help us to find answer for this one

5. Any other initializer a class has calls the _ designated initializer....

Answer

Correct Answer: Retain

Note: This Question is unanswered, help us to find answer for this one

6. NSSet...

Answer

Correct Answer: Unordered collection of objects - objects must be unique

Note: This Question is unanswered, help us to find answer for this one

7. UIViewController has several methods that get called at certain times...

Answer

Correct Answer: ViewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Object

Note: This Question is unanswered, help us to find answer for this one

9. How do I implement my drawRect?

Answer

Correct Answer: Core Graphics Framework

Note: This Question is unanswered, help us to find answer for this one

10. A command directed to an object is called an...

Answer

Correct Answer: Message

Note: This Question is unanswered, help us to find answer for this one

11. A view represents a _ area

Answer

Correct Answer: Rectangular

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: A single-array can contain objects of different types

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Ready-Made Instance

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Instance

Note: This Question is unanswered, help us to find answer for this one

15. 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.

Answer

Correct Answer: First responder

Note: This Question is unanswered, help us to find answer for this one

16. A UITableView usually needs three different pieces...

Answer

Correct Answer: Data source - delegate and view controller

Note: This Question is unanswered, help us to find answer for this one

17. Super - is used...

Answer

Correct Answer: For inheritance - adopting the superclasses implementation

Note: This Question is unanswered, help us to find answer for this one

18. Files Owner...

Answer

Correct Answer: Is a placeholder object

Note: This Question is unanswered, help us to find answer for this one

19. If the view has no subviews - create it programmatically; if it has subviews

Answer

Correct Answer: Create a XIB file

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Its dataSource

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Storage

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Do so in viewDidLoad

Note: This Question is unanswered, help us to find answer for this one

23. Reducing details to focus on the core concepts

Answer

Correct Answer: Abstraction

Note: This Question is unanswered, help us to find answer for this one

24. To load a Xib file manually - you use _

Answer

Correct Answer: NSBundle

Note: This Question is unanswered, help us to find answer for this one

25. 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....

Answer

Correct Answer: Define it in the implemenation file

Note: This Question is unanswered, help us to find answer for this one

26. A responder is responsible for...

Answer

Correct Answer: Receiving and handling events that are associated with it

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Will be ignored

Note: This Question is unanswered, help us to find answer for this one

28. Origin of a views coordinate system is _ left

Answer

Correct Answer: Upper

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Instantiation from scratch

Note: This Question is unanswered, help us to find answer for this one

30. [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.

Answer

Correct Answer: Data

Note: This Question is unanswered, help us to find answer for this one