Test your basic knowledge |

iOS 5 App Development Objective C

Subjects : it-skills, apple
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Instance Variables by default are called @protected meaning...






2. Execution of the break statement...






3. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.






4. A view represents a _ area






5. The only reason to temporarily own an object - is...






6. All objects are accessed using...






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






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






9. When do you take ownership?...






10. NSString objects are usually sent _ rather than _...






11. NSArray - class...






12. Designated initializer makes sure that every...






13. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.






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






15. Hold data and know nothing about the user interface






16. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements






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






18. The integer prefix is...






19. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object






20. Use of class methods - there are three...






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






22. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.






23. A function in the objective c library that simply displays or logs it's argument






24. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per






25. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...






26. @property declares - and _ implements the setter and getter...






27. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...






28. Number one use of protocols in iOS...






29. id is a...






30. super - is used...






31. Whenever a UINavigationController is about to swap views - it sends out two messages






32. Values to be supplied as the parameters to the method






33. Classes describe two things...






34. Class methods typically either create






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






36. NSValue - class...






37. When an object is removed from an NSMutableArray - that object is sent the message release;...






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






39. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked






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






41. Typically the designated initializer has parameters for the most important and frequently used _ of an object






42. Delegation is an object oriented approach to






43. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...






44. C struct with a CGPoint origin and a CGSize size - in other words two c structs.






45. Ready-made instances...






46. You use _ to implement the view






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






48. A method in a _ is required unless its preceded by an @optional.






49. NSArray - important methods...






50. class methods...