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. a+b; is an example of using a _____ operator






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






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






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






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






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






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






8. ARC is susceptible to retain _____






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






10. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






13. ______ data types are always zero or greate






14. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






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






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






22. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






32. Square bracket syntax for calling a method






33. Symbol used to denote a placeholder in a format string






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






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






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






37. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






44. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






45. _____ operators take 2 operands






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






47. Initializer method traditionally begin with the _____ prefix






48. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






50. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.