Test your basic knowledge |

iOS 5 App Development Objective C

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. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object






2. How do I implement my drawRect?






3. A pointer to the object being asked to execute a method






4. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.






5. Defining variables - three parts...






6. When do you take ownership?...






7. A function in the objective c library that simply displays or logs it's argument






8. A _ handles touch events.






9. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.






10. In object oriented languages - we call methods that get and set instance variables

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


11. Whenever a UINavigationController is about to swap views - it sends out two messages






12. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....






13. Number one use of protocols in iOS...






14. Categories are an Objective C way to add _ to an existing class without subclassing






15. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.






16. Object Oriented based analogue to a function is called a...






17. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.






18. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....






19. NSArray - important methods...






20. Only exists within the statement block there defined - outside of the block is fine






21. Center and frame are used to _ your view






22. When an NSMutableArray is deallocated - it sends...






23. Ready-made instances...






24. NSValue - class...






25. When an object is removed from an NSMutableArray - that object is sent the message release;...






26. Each class picks one _ as it's designated initializer....






27. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...






28. Class methods do not operate on an _ or have any access to _ variables....






29. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.






30. Any individual object belonging to any class...






31. Also - because arrays only hold a pointer to an object...






32. A view is an...






33. Property List...






34. In the last line of an init method...






35. A callback is a function that is supplied in advance of an event - and...






36. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller






37. A message is always contained in square brackets - and has three parts






38. initWithFrame: the designated initializer for UIView gives the view






39. Variable names tend to start with a _ letter; class names tend to start with an _ letter.






40. C struct with a CGPoint origin and a CGSize size - in other words two c structs.






41. UIView - designated initializer...






42. The only reason to temporarily own an object - is...






43. UIViewController has several methods that get called at certain times...






44. Also if you send the NSObject the _ message - you own that object.






45. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.






46. Delegation is an object oriented approach to






47. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per






48. A view represents a _ area






49. If the view has no subviews - create it programmatically; if it has subviews






50. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...

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