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. An architecture that facilitates communication between objects in different address spaces.






2. Objective-C methods are called using ____ _____






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






4. ______ data types are always zero or greate






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






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






7. An object id with a value of 0.






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






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






10. The most flexible C data type: ______






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






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






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






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






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






16. The root class in Objective-C






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






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






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






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






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






22. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






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






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






30. _____ data types can be both positive and negative






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






32. ______ operators take a single operand






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






34. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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