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 class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






7. Property attribute that synthesizes accessors that are not thread safe






8. A compiler feature that provides automated memory management






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






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






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






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






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






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






15. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






16. _____ data types can be both positive and negative






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






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






19. ______ data types are always zero or greate






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






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. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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






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






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. In object-oriented programming the object that is sent a message.






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






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






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






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






34. ______ operators take a single operand






35. The root class in Objective-C






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






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






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






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






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






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






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






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 object of unknown class. Interface is published through protocol declaration.






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






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






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






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






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






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.