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 class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






6. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






22. To destroy an object set the variable that points to it to _____






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






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






25. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






40. ______ operators take a single operand






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






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






43. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






47. _____ operators take 2 operands






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






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






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