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 message sent from one application to an object in another application.






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






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






4. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






9. ______ operators take a single operand






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






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






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






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






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






15. The most flexible C data type: ______






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






17. _____ data types can be both positive and negative






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






19. Data types are divided into two main categories: integer and ______






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






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






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






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






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






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






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






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






28. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






44. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






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






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






49. a+b; is an example of using a _____ operator






50. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica