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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






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






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






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






5. Property attribute that synthesizes only a getter for the property






6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






12. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






15. A compiler feature that provides automated memory management






16. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






20. Property attribute that causes the setter to store a copy of the assigned value






21. Xcode sequence to convert non-ARC apps to ARC






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






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






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






25. All objects are created on the _____






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






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






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






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






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






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






32. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






49. ______ operators take a single operand






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