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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






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






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






12. ______ operators take a single operand






13. The most flexible C data type: ______






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






15. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






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






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






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






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






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






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






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






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






25. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






27. Any method that can be used by an instance of a class rather than by the class object.






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






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






30. All objects are created on the _____






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






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






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






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






35. The root class in Objective-C






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






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






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






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






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






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






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






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






44. A message sent from one application to an object in another application.






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






46. The _____ function can be used to print a message to the console






47. A compiler feature that provides automated memory management






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






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






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