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 files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






5. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






7. In a home building analogy a ____ is the blueprint and the object is the house






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






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. A protocol declared as a category usually as a category of the NSObject class.






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






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






13. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






14. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






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






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






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






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






23. An object id with a value of 0.






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






25. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






38. The root class in Objective-C






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






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






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






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






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






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






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






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






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






48. Objective-C methods are called using ____ _____






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






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