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






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






3. The root class in Objective-C






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






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






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






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






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






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






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






11. An object id with a value of 0.






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






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






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






15. ______ data types are always zero or greate






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






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






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






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






20. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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. Data types are divided into two main categories: integer and ______






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






40. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






42. _____ operators take 2 operands






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






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






45. _____ 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'.






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






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






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






49. Any method that can be used by an instance of a class rather than by the class object.






50. Objective-C methods are called using ____ _____