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. Variable names tend to start with a _ letter; class names tend to start with an _ letter.






2. Reference Counting...






3. class methods...






4. NSNumber - class...






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






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






7. At the top of any implementation file...






8. When an object is added to a NSMutableArray - that object is sent the message to retain;...






9. Values to be supplied as the parameters to the method






10. 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.






11. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha






12. A collection object - an ordered list of objects that can be accesed by an index






13. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.






14. 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


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






16. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.






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






18. Prefixing a character string with an @ symbol [specific - NSString class]...






19. We can use dot notation to reference...

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


20. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?






21. 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






22. 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






23. Core foundation classes are prefixed with _ and suffixed with _






24. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?






25. A UITableView usually needs three different pieces...






26. The designated initializer calls the _ designated initializer....

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


27. You use _ to implement the view






28. When do we need to release our outlets?

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


29. NSDate - class...






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






31. When do you take ownership?...






32. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....






33. 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 _.






34. A view is a subclass of _






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






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






37. Delegation is an object oriented approach to






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






39. NSValue - class...






40. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....






41. How do I implement my drawRect?






42. NSArray - class...






43. Origin of a view's coordinate system is _ left






44. id is a...






45. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements






46. UIView - designated initializer...






47. Just a floating point number - but we always use it for graphics.






48. The integer prefix is...






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






50. Asking a class or object to execute a method