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. In object oriented languages - we call methods that get and set instance variables


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






3. A UITableViewController can fill all three roles of...






4. The integer prefix is...






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






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






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






8. When an NSMutableArray is deallocated - it sends...






9. NSSet...






10. super - is used...






11. class methods...






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






13. Origin of a view's coordinate system is _ left






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






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






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






17. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller






18. Views have three properties related to their location and size: @property _ _;






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






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






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






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






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






24. Class methods typically either create






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






26. Ready-made instances...






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






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






29. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha






30. A responder is responsible for...






31. What does autorelease mean?






32. Why properties?






33. A _ handles touch events.






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






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






36. Hold data and know nothing about the user interface






37. Each _ has a 'designated' initializer method....






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






39. UIImageView is used to...






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






41. After accessors have been defined in the header file...






42. The designated initializer calls the _ designated initializer....


43. NSNumber - class...






44. A view is a subclass of _






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






46. Never access a view controller's view in that...


47. NSValue - class...






48. What happens when the last owner calls release?


49. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...


50. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern