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. C-style strings are stored in an array of _____






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






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






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






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






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






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






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






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






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






11. All objects are created on the _____






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






13. ______ data types are always zero or greate






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






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






16. ______ operators take a single operand






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






18. In object-oriented programming a procedure that can be executed by an object.






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






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






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






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






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






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






25. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






28. The root class in Objective-C






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






30. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






37. Property attribute that causes the setter to store a copy of the assigned value






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






39. In Objective-C floats are more commonly used than ______






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






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






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






43. _____ operators take 2 operands






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






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






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






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






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






49. _____ data types can be both positive and negative






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