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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






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






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






13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






30. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






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






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






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






35. ______ operators take a single operand






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






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






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






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






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






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






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






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






44. Property attribute that synthesizes only a getter for the property






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






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






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






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






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






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