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. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






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






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






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






10. The process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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






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






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






18. ARC is susceptible to retain _____






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






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






21. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






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






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






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






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






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






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






30. The most flexible C data type: ______






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






32. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






35. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






44. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






47. ______ data types are always zero or greate






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






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






50. _____ data types can be both positive and negative