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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






3. Placing a ____ before a normal variable name gives it's address






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






21. _____ operators take 2 operands






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. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






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






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






31. All objects are created on the _____






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






33. A class is said to do this when it declares that it implements all the methods in the protocol.






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






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






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






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






38. Initializer method traditionally begin with the _____ prefix






39. A compiler feature that provides automated memory management






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






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






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






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






44. The process of setting or reading the value at an address pointed to by a pointer






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






46. _____ data types can be both positive and negative






47. The most flexible C data type: ______






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






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






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