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 set of method definitions that is segregated from the rest of the class definition.






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






3. Objective-C methods are called using ____ _____






4. Square bracket syntax for calling a method






5. The process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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






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






12. C-style strings always end with a ____ character






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






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






15. An object id with a value of 0.






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






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






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






19. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






20. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






21. Same as class object. (first way to say it.)






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






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






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






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






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






27. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






29. There are ____ fundamental building blocks in Objective-C






30. ______ data types are always zero or greate






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






32. A struct may contain multiple ____ consisting of different data types






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






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






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






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






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






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






39. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






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






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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






45. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






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






50. Data types are divided into two main categories: integer and ______