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. What if I want to put a scalar into an NSArray or NSSet?






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






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






4. What is the center property of a UIView?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


5. What about controller talking to the model?






6. Show a private interface section.






7. Classes cannot have _________ or ___________.






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






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






10. How is ARC done?






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






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






14. What about the view talking to the controller?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






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






18. Where do I initialize properties?






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






20. What is the makeup of a CGRect?






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


22. ______ is a pointer






23. How are local variables initialized in iOS 5?






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






26. Some controllers have ____________ as their views.






27. What does 'strong' mean?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






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






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






32. A property is just the combination of _______.






33. What is the frame property of a UIView?

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






35. All properties are initialized to _____






36. You can send a message to a...






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






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


39. What is the iOS term for a library?






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






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






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






43. Dot notation does what?






44. The decision on what method to call is made when?






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






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






47. Is NSArray mutable?






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






49. How to create a UIView in code?






50. The basic steps in custom drawing.