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. Placing a ____ before a normal variable name gives it's address






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






3. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






5. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






8. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






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






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






15. An object id with a value of 0.






16. ______ operators take a single operand






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






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






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






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






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






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






23. Square bracket syntax for calling a method






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






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






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






27. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






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






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






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






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






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






38. Initializer method traditionally begin with the _____ prefix






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






40. ARC is susceptible to retain _____






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






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






43. The root class in Objective-C






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






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






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






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






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. ____ provide a concise & elegant method for defining a discrete set of values






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