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. In a format string the place holder for an object is ______






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






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






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






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






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






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






8. _____ operators take 2 operands






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






10. A method that can operate on class objects rather than instances of the class.






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






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






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






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






15. A class is said to do this when it declares that it implements all the methods in the protocol.






16. ______ operators take a single operand






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






18. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






20. _____ data types can be both positive and negative






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. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






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






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






33. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






35. Objective-C is a _____ of the C language






36. ARC is susceptible to retain _____






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






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






39. The root class in Objective-C






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






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






42. An object id with a value of 0.






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






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






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






46. Symbol used to denote a placeholder in a format string






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






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






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






50. ______ data types are always zero or greate