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 memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






2. In a format string the place holder for an object is ______






3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






4. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






5. Another name for a class that's defined solely so that other classes can inherit from it.






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






7. The most flexible C data type: ______






8. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






9. A variable that points to the memory address of another value






10. Objective-C's protocols are really about communicating _____ _______






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






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






13. Objective-C is a _____ of the C language






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






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






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






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






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






19. Xcode sequence to examine an app for memory leaks or retain cycles






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






21. Objective-C objects should use strong or weak ______






22. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






24. _____ allow indirect access and modification of a variable's value.






25. The root class in Objective-C






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






27. Initializer method traditionally begin with the _____ prefix






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






29. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






32. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






34. Symbol used to denote a placeholder in a format string






35. ______ data types are always zero or greate






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






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






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






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






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






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






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






43. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






44. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






45. In object-oriented programming the object that is sent a message.






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






47. An object in another application - one that's a potential receiver for a remote message.






48. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






49. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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