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






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






3. 3 Common Float data types: float - _____ - CGFloat






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






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






6. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






7. A compiler feature that provides automated memory management






8. There are ____ fundamental building blocks in Objective-C






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






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






11. Same as class object. (first way to say it.)






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






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






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






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






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






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






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






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






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






21. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






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






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






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






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






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






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






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. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






37. The most flexible C data type: ______






38. Objective-C methods are called using ____ _____






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






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






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






42. Square bracket syntax for calling a method






43. All objects are created on the _____






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






45. _____ data types can be both positive and negative






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






47. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






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






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