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 ____ _____ is where you forget to free up memory






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






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






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






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






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






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






8. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






14. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






16. The most flexible C data type: ______






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






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






19. Same as class object. (second way to say it.)






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






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






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






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






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






25. An object id with a value of 0.






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






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






28. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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






32. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






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






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






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






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






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






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






41. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






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






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






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






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