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. This symbol denotes a method as being a class method






2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






3. _____ operators take 2 operands






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






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






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






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






8. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






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






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






21. Square bracket syntax for calling a method






22. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






25. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






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






33. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






49. Objective-C methods are called using ____ _____






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