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






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






3. Instance variables are optional in iOS if ________ are used






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






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






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






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






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






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






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






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






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






13. Objective-C methods are called using ____ _____






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






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






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






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






18. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






36. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






40. _____ operators take 2 operands






41. Data types are divided into two main categories: integer and ______






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






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






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






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






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






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






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






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






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