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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






5. An architecture that facilitates communication between objects in different address spaces.






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






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






8. _____ data types can be both positive and negative






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






10. The most flexible C data type: ______






11. Square bracket syntax for calling a method






12. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






17. In Objective-C floats are more commonly used than ______






18. ARC is susceptible to retain _____






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






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






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






22. In the Objective-C language the declaration of a group of methods not associated with any particular class.






23. In a format string the place holder for an object is ______






24. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






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






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






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






34. All objects are created on the _____






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






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






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






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. _____ 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'.






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






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






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






43. Objective-C methods are called using ____ _____






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






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






46. A method that can operate on class objects rather than instances of the class.






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






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






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






50. A compiler feature that provides automated memory management