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 Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






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






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






9. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






16. A compiler feature that provides automated memory management






17. A protocol declared as a category usually as a category of the NSObject class.






18. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






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






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






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






23. The root class in Objective-C






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






25. All objects are created on the _____






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






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






28. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






34. ARC is susceptible to retain _____






35. ______ operators take a single operand






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






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






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






39. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






45. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






48. An object id with a value of 0.






49. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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