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 block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value






2. Defining variables - three parts...






3. When do you take ownership?...






4. NSArray - class...






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


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






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






8. UIImageView is used to...






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






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






11. Hold data and know nothing about the user interface






12. Three ways instances are created...






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






14. Reference Counting...






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






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






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






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






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






20. @property declares - and _ implements the setter and getter...






21. UIView - designated initializer...






22. Ready-made instances...






23. The integer prefix is...






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






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






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






27. You use _ to implement the view






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


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






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






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






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






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






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






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






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


37. The class is responsible for what instance variables the instance has - but not the _ of those variables.






38. A view represents a _ area






39. Primitives and C Structures...






40. UITableViewController is a subclass of...






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. NSString objects are usually sent _ rather than _...






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






44. Never access a view controller's view in that...

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


45. Why properties?






46. NSArray - important methods...






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. super - is used...






49. A responder is responsible for...






50. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked