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






2. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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






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






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






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






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






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






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






17. ______ operators take a single operand






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






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






20. The most flexible C data type: ______






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






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






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






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






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






26. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






34. This symbol denotes a method as being an instance method






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






36. An object id with a value of 0.






37. The first index in an array is valued at ____






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






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






40. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






44. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






48. a++; is an example of using a _____ operator






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






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.