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. How to create a UIView in code?






2. ______ is a pointer






3. What is in the model?






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






5. What is the makeup of a CGPoint?






6. What does a view (UIView) represent?






7. Why are properties good?






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






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






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






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


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






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






14. What is the iOS term for a library?






15. Talk about NSString






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






17. Where do I initialize properties?






18. Talk about BOOL variables.






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






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






21. What is the makeup of a CGRect?






22. What does 'weak' mean?


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






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






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






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






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






28. What is a property list?






29. The view is...


30. What about controller talking to the model?






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






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






33. Is NSArray mutable?






34. Some controllers have ____________ as their views.






35. How to instantiate an object?






36. What about the view talking to the controller?


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






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






39. What is the center property of a UIView?


40. What is used in lieu of pixels? And why?






41. How about the model talking to the controller?


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






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






44. Is NSString mutable or not?






45. How to see all actions - outlets - incoming/outgoing segues on a view?






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






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






48. How can I save user information between launches of my app?






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






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