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. Number one use of protocols in iOS...






2. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.






3. Classes describe two things...






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






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






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






7. The designated initializer calls the _ designated initializer....


8. Categories are an Objective C way to add _ to an existing class without subclassing






9. @property - is using methods...






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






11. NSString *s = @'Hello - World'; is an example of...






12. How do I implement my drawRect?






13. All objects are accessed using...






14. class methods...






15. A view is an...






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






17. Instance Variables by default are called @protected meaning...






18. A collection object - an ordered list of objects that can be accesed by an index






19. A message is always contained in square brackets - and has three parts






20. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....






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






22. Each class picks one _ as it's designated initializer....






23. NSValue - class...






24. NSDictionary...






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






26. In Objective C arrays can hold only...






27. In general - class methods tend to be factory methods - that is...






28. NSSet...






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






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






31. Variable names tend to start with a _ letter; class names tend to start with an _ letter.






32. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value






33. A view is a subclass of _






34. When do we need to release our outlets?


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






36. At the top of any implementation file...






37. Class methods typically either create






38. What happens when the last owner calls release?


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






40. A view represents a _ area






41. NSNumber - class...






42. Core foundation classes are prefixed with _ and suffixed with _






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






44. In any application with UINavigationController - the navigation controller...






45. Proceed through the loop - jump back to the top and check again






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






47. Center and frame are used to _ your view






48. Prefixing a character string with an @ symbol [specific - NSString class]...






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






50. The class is responsible for what instance variables the instance has - but not the _ of those variables.