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. After accessors have been defined in the header file...






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






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






4. UITableViewController is a subclass of...






5. In the last line of an init method...






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






7. Reducing details to focus on the core concepts






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






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






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






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






12. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.






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






14. A _ handles touch events.






15. if you implemented both the setter and getter - the @synthesize method...






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






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






18. All objects are accessed using...






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






20. When do you take ownership?...






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






22. Any individual object belonging to any class...






23. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.






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






25. Reference Counting...






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






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






28. NSNumber - class...






29. Class methods typically either create






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






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






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






33. In a class method you cannot access...






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






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


36. UIView - designated initializer...






37. initWithFrame: the designated initializer for UIView gives the view






38. Asking a class or object to execute a method






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






40. The root view controller typically creates the next view controller - and the next _ creates the one after that






41. Ready-made instances...






42. We can use dot notation to reference...

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






44. A view represents a _ area






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






46. What happens when the last owner calls release?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






48. @property - is using methods...






49. Hold data and know nothing about the user interface






50. The integer prefix is...