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 process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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






7. A compiler feature that provides automated memory management






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






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






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






11. Objective-C objects should use strong or weak ______






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






13. All objects are created on the _____






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






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






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






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






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






19. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






29. _____ data types can be both positive and negative






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






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






33. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






35. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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