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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






4. A compiler feature that provides automated memory management






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






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. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






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






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






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






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






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






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






18. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






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






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






25. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






27. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






35. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






45. The most flexible C data type: ______






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






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






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






49. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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