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 architecture that facilitates communication between objects in different address spaces.






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






3. Objective-C methods are called using ____ _____






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






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






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






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






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






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






10. A ____ _____ is where you forget to free up memory






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






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






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






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






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






16. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






29. The root class in Objective-C






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






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






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






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






34. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






35. Property attribute that causes the setter to store a strong reference to the assigned value






36. ARC is susceptible to retain _____






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






38. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






45. Same as class object. (second way to say it.)






46. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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