Test your basic knowledge |

iOS 5 App Development 2

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. A _______ goes from the Controller to the View. A ________ goes from the view to the controller.






2. How to add subviews in code? How to remove them?






3. Remember that it's cool to...






4. What does a view (UIView) represent?






5. When is it OK to call drawRect: directly?






6. How to tell whether an object is of a class or class that inherits from that class? (Write a line of code)






7. What about the model and the view talking to one another?






8. Is NSString mutable or not?






9. Why are properties good?






10. What about controller talking to the model?






11. What is the center property of a UIView?


12. The decision on what method to call is made when?






13. The setters for outlets are called by _______ at this point ______________.






14. How to tell whether an object implements a particular method? (A line of code)






15. How are local variables initialized in iOS 5?






16. Does a view 'own' the data it displays?






17. What is the makeup of a CGRect?






18. What about public/private in Objective-C?


19. What is in the model?






20. If a method starts with a dash - it's a ___________. If it starts with a plus sign - it's a ______________.






21. In the initializer methods of objects I create - add what line of code? Why?






22. What is static typing? Why is it good?


23. What does the controller do?






24. What is an example of a reason to write a getter?






25. Is NSArray mutable?






26. A property is just the combination of _______.






27. What is the fundamental design pattern of iOS development?






28. All properties are initialized to _____






29. How to instantiate an object?






30. What is the bounds property of a UIView?






31. In synthesize: @synthesize foo = _foo; The __foo_ is the ____________ or also known as the ___________________.


32. How to force a redraw of a custom area?






33. What do I use for a hash table/associative array? And is it mutable?


34. In a nutshell: how to do custom drawing?






35. Classes cannot have _________ or ___________.






36. ________ is the .h file and __________ is the .m file.






37. The basic steps in custom drawing.






38. Talk about NSString






39. Instance methods start with a ______ and class methods start with a ______.






40. What does 'weak' mean?


41. What is the makeup of a CGSize?






42. How to tell if an object is of a particular class? (Write a line of code)






43. What do I use for an unordered collection - e.g. test for membership? And is it mutable?


44. The view is...


45. Can the controller talking to the view?






46. How about the model talking to the controller?


47. All classes should have a __________________ to be called by subclasses.






48. What if I want to put a scalar into an NSArray or NSSet?






49. Objects in an array: are the pointed to strongly or weakly?






50. What is at the top of the view hierarchy?