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. All properties are initialized to _____






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






3. Dot notation does what?






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






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






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






7. Can the controller talking to the view?






8. What about controller talking to the model?






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






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






11. ______ is a pointer to any object.






12. You can send a message to a...






13. What about the view talking to the controller?


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






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






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






17. Talk about BOOL variables.






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






19. What is a property list?






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


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


22. What is the bounds property of a UIView?






23. What is the iOS term for a library?






24. Why are properties good?






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






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






27. What does 'strong' mean?


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






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






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






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






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






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






34. Show a private interface section.






35. Where do I initialize properties?






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






37. What is the frame property of a UIView?


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






39. What is the center property of a UIView?


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






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






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


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






44. What is in the model?






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


46. Is NSArray mutable?






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






48. ______ is a pointer






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






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