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. A message sent from one application to an object in another application.






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






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






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






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






6. Objective-C methods are called using ____ _____






7. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






18. An object id with a value of 0.






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






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






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






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






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






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






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






26. All objects are created on the _____






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






28. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






31. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






38. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






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






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






43. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






45. _____ allow you to add new methods to existing classes






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






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






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






49. Objective-C objects should use strong or weak ______






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