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. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






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






8. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






12. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






28. ______ operators take a single operand






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






30. ______ data types are always zero or greate






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






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






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






34. ARC is susceptible to retain _____






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






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






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






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






39. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






40. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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