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. Does a view 'own' the data it displays?






2. What is the center property of a UIView?


3. Talk about BOOL variables.






4. Classes cannot have _________ or ___________.






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






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






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


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






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






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






11. Is NSString mutable or not?






12. All properties are initialized to _____






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






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






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






16. Why are properties good?






17. How is ARC done?






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






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






20. What is the makeup of a CGPoint?






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


22. What is a property list?






23. The basic steps in custom drawing.






24. What does 'strong' mean?


25. What is in the model?






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






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






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






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






30. What does the controller do?






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






32. ______ is a pointer to any object.






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






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






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






36. ______ is a pointer






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






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






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






40. A property is just the combination of _______.






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






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






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


44. What does a view (UIView) represent?






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






46. What is the frame property of a UIView?


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






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


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






50. Where do I initialize properties?