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. Objective-C is a _____ of the C language






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






18. The root class in Objective-C






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






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






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






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






23. Square bracket syntax for calling a method






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. The most flexible C data type: ______






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






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






28. ARC is susceptible to retain _____






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






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






31. Initializer method traditionally begin with the _____ prefix






32. Finding the method implementation to invoke in response to the message






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






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






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






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






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






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






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






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






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






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






44. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






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






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