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. An object that acts on behalf of another object.






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






3. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






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






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






8. There are ____ fundamental building blocks in Objective-C






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






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






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






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






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






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






15. Square bracket syntax for calling a method






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






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






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






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






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






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






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






23. The most flexible C data type: ______






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






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






26. ______ data types are always zero or greate






27. ______ operators take a single operand






28. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






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






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






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






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






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






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






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






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






43. An object id with a value of 0.






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






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






46. Initializer method traditionally begin with the _____ prefix






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






48. _____ allow you to add new methods to existing classes






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






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