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. This symbol denotes a method as being a class method






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






3. Objective-C methods are called using ____ _____






4. The root class in Objective-C






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






6. Square bracket syntax for calling a method






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






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






9. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






19. An object id with a value of 0.






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






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






22. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






23. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






31. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






34. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






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






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






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






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






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






48. The first index in an array is valued at ____






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






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