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. When is it OK to call drawRect: directly?






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


3. The controller is always a subclass of...?






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






5. How to instantiate an object?






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






7. Classes cannot have _________ or ___________.






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






9. What does the controller do?






10. Can the controller talking to the view?






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






12. Use ______ to send debugging messages to the console. Use _____ for any object - which should return an string. Can also use ______.






13. What about controller talking to the model?






14. What does a view (UIView) represent?






15. If I need to convert a number to an object - use __________






16. All properties are initialized to _____






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






18. What is the makeup of a CGRect?






19. What is the name of a property in the controller that it uses to talk to views?






20. What is the center property of a UIView?


21. Some controllers have ____________ as their views.






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






23. Are local pointers to objects strong or weak? So what happens at the end of the routine?






24. How to do enumeration with NSArray - NSDictionary - etc?


25. What is the frame property of a UIView?


26. The single-view template in Xcode does not...






27. What do I use for an ordered collection of objects? And is it mutable?


28. What is the makeup of a CGPoint?






29. What to do in Xcode for short documentation? For full documentation?






30. Calling a method on id works just fine because....?






31. Class methods are used for ___________ and the call starts with ____________.






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






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






34. A _______ is how a view notifies the controller of something - for example - a button press.






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






36. How can I find out the class of any object? Give a line of code.






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






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






39. What is the makeup of a CGSize?






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






41. Dot notation does what?






42. Instead of 'include' statements - in Objective-C we use _______ which does ________






43. What do I use for a bag of bits?






44. There is no difference between _____ and _______ at runtime.






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


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






47. How to access the controller's top view?






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






49. How about the model talking to the controller?


50. Is it always bad to send messages to id?