Test your basic knowledge |

Objective C Programming Basics

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 technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






2. Property attribute that causes the setter to store a strong reference to the assigned value






3. A ____ ____ is a situation where you free memory and then accidentally continue to use it






4. A set of method definitions that is segregated from the rest of the class definition.






5. _____ allow you to add new methods to existing classes






6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






7. Objective-C methods are called using ____ _____






8. Property attribute that synthesizes both a getter and setter for the property






9. A ____ _____ is where you forget to free up memory






10. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






11. ____ provide a concise & elegant method for defining a discrete set of values






12. C-style strings are stored in an array of _____






13. A message sent from one application to an object in another application.






14. 3 Common Float data types: float - _____ - CGFloat






15. An object of unknown class. Interface is published through protocol declaration.






16. ______ operators take a single operand






17. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






18. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






19. The most flexible C data type: ______






20. ______ data types are always zero or greate






21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






22. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






23. a+b; is an example of using a _____ operator






24. All objects are created on the _____






25. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






26. This symbol denotes a method as being an instance method






27. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






28. An object that acts on behalf of another object.






29. Placing a ____ before a normal variable name gives it's address






30. In object-oriented programming a procedure that can be executed by an object.






31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






32. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






33. Finding the method implementation to invoke in response to the message






34. Discovering the class of an object at runtime rather than at compile time.






35. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






36. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






37. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






38. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






39. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






40. Property attribute that synthesizes accessors that are not thread safe






41. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






42. A class is said to do this when it declares that it implements all the methods in the protocol.






43. To destroy an object set the variable that points to it to _____






44. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






45. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






46. Any method that can be used by an instance of a class rather than by the class object.






47. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






48. Property attribute that synthesizes only a getter for the property






49. This symbol denotes a method as being a class method






50. a++; is an example of using a _____ operator