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. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






17. _____ operators take 2 operands






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






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






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






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






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






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






24. An object id with a value of 0.






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






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






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






28. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






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






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






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






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






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






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






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






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






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






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






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






41. Square bracket syntax for calling a method






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






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






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






45. C-style strings always end with a ____ character






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






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






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






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






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