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






3. Square bracket syntax for calling a method






4. 3 Common Float data types: float - _____ - CGFloat






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






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






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






8. The root class in Objective-C






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






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






11. All objects are created on the _____






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






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






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






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






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






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






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






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






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






21. Initializer method traditionally begin with the _____ prefix






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






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






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






25. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






37. Instance variables are optional in iOS if ________ are used






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






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






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






41. The most flexible C data type: ______






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






43. A compiler feature that provides automated memory management






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






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






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






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






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






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






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