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 direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






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






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






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






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






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






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






11. Data types are divided into two main categories: integer and ______






12. The root class in Objective-C






13. _____ operators take 2 operands






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






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






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






17. The most flexible C data type: ______






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






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






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






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






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






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






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






25. ______ operators take a single operand






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






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






28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






31. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






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






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






45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






47. ______ data types are always zero or greate






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






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






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