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. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






19. An object id with a value of 0.






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






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






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






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






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






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






26. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






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






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






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






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






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






37. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






42. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






43. The root class in Objective-C






44. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






48. Placing a ____ before a normal variable name gives it's address






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






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