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. All classes should have a __________________ to be called by subclasses.






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


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






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






7. Talk about NSString






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






9. How to instantiate an object?






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






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






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


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. Why are properties good?






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


17. What is the bounds property of a UIView?






18. Is NSString mutable or not?






19. How about the model talking to the controller?


20. List the iOS hierarchy from top to bottom.






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






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






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






24. What does 'strong' mean?


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






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






27. What is the makeup of a CGSize?






28. Show a private interface section.






29. What about the view talking to the controller?


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






31. What about controller talking to the model?






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






33. What is the makeup of a CGPoint?






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


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


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






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






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






39. Is NSArray mutable?






40. How are local variables initialized in iOS 5?






41. All properties are initialized to _____






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






43. What is the makeup of a CGRect?






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


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






46. ______ is a pointer to any object.






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






48. Classes cannot have _________ or ___________.






49. The view is...


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