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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






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






3. A compiler feature that provides automated memory management






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






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






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






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






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






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






10. ______ operators take a single operand






11. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






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






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






25. The root class in Objective-C






26. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






28. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






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






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






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






35. This symbol denotes a method as being an instance method






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






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






38. The most flexible C data type: ______






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






40. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






44. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






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






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






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






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