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






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






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






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






5. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






10. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






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






13. A compiler feature that provides automated memory management






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






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






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






17. Square bracket syntax for calling a method






18. Property attribute that causes the setter to store a copy of the assigned value






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






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






21. All objects are created on the _____






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






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






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






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






26. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






27. Initializer method traditionally begin with the _____ prefix






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






29. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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






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






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






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






38. The root class in Objective-C






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






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






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






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






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






44. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






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