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






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






3. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern






4. NSDate - class...






5. Files Owner...






6. NSDictionary...






7. Why properties?






8. An instance is a device for maintaining state. It's a box for _ of data.






9. When do you take ownership?...






10. A view is an...






11. In general - class methods tend to be factory methods - that is...






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






13. A responder is responsible for...






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






15. UIView - designated initializer...






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






17. A method in a _ is required unless its preceded by an @optional.






18. In a class method you cannot access...






19. Use of class methods - there are three...






20. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.






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


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






23. What does autorelease mean?






24. NSSet...






25. super - is used...






26. What happens when the last owner calls release?

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


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






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






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






30. Instance Variables by default are called @protected meaning...






31. In Objective C arrays can hold only...






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






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






34. NSString *s = @'Hello - World'; is an example of...






35. If you have extra work you want to do on the view...






36. In Cocoa Touch - the table view asks another object _ what it should display...






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






38. Views have three properties related to their location and size: @property _ _;






39. Any other initializer a class has calls the _ designated initializer....

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


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






41. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.






42. Each _ has a 'designated' initializer method....






43. All objects are accessed using...






44. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...






45. A command directed to an object is called an...






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






47. How do I implement my drawRect?






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






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






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