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 prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






3. The most flexible C data type: ______






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






5. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






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






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






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






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






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






13. A struct may contain multiple ____ consisting of different data types






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






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






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






17. The root class in Objective-C






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






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






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






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






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






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






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






25. _____ data types can be both positive and negative






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






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






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






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






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






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






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






33. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






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






36. Square bracket syntax for calling a method






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






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






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






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






41. Any class that's one step below another class in the inheritance hierarchy.






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






43. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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