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. List the iOS hierarchy from top to bottom.






2. All properties are initialized to _____






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






4. What is the bounds property of a UIView?






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






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






7. What is a property list?






8. Dot notation does what?






9. What about the view talking to the controller?


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


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






12. ______ is a pointer to any object.






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






14. Why are properties good?






15. What is the word for checking/verifying the type of an object?


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






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






18. What does 'strong' mean?


19. What is the frame property of a UIView?


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


21. How are local variables initialized in iOS 5?






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






23. What is a reason to write our own setter?






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






25. Talk about BOOL variables.






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






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


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


29. What is in the model?






30. A _______ goes from the Controller to the View. A ________ goes from the view to the controller.






31. How many superviews does a view have? How many subviews?






32. When happens when you send a message to nil?






33. What is the makeup of a CGPoint?






34. Is NSArray mutable?






35. Show a private interface section.






36. How is ARC done?






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






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






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






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






41. What does 'weak' mean?


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






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






44. Is NSString mutable or not?






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






46. What is the base class for most objects in the iOS SDK?






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






48. ________ implements the getter and setter. But we can always__________






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






50. Where do I initialize properties?