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. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






5. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






7. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






8. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






14. All objects are created on the _____






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






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






17. ______ data types are always zero or greate






18. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






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






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






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






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






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






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






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






32. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






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






36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






40. There are ____ fundamental building blocks in Objective-C






41. Square bracket syntax for calling a method






42. An object id with a value of 0.






43. The root class in Objective-C






44. ARC is susceptible to retain _____






45. A compiler feature that provides automated memory management






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






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






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






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






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