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. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






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






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






7. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






16. A struct may contain multiple ____ consisting of different data types






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






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






19. Initializer method traditionally begin with the _____ prefix






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






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






22. Property attribute that synthesizes accessors that are not thread safe






23. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






24. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






40. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






44. The root class in Objective-C






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






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






47. ______ data types are always zero or greate






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






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






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