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. Property attribute that synthesizes only a getter for the property






2. Any class that's one step below another class in the inheritance hierarchy.






3. A method that can operate on class objects rather than instances of the class.






4. In Objective-C floats are more commonly used than ______






5. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






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






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






10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






11. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






12. A protocol declared as a category usually as a category of the NSObject class.






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






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






15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






16. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






17. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






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






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






22. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






23. Objective-C methods are called using ____ _____






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






25. _____ 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'.






26. In a home building analogy a ____ is the blueprint and the object is the house






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






28. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






31. Initializer method traditionally begin with the _____ prefix






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






33. A compiler feature that provides automated memory management






34. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






35. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






37. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






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






40. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






42. The _____ function can be used to print a message to the console






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






44. Same as class object. (second way to say it.)






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






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






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






48. _____ operators take 2 operands






49. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






50. _____ data types can be both positive and negative