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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






10. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






15. ______ data types are always zero or greate






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






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






18. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






37. Square bracket syntax for calling a method






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






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






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






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






42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






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






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






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