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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






17. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






19. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






22. ARC is susceptible to retain _____






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






24. Any class that's one step below another class in the inheritance hierarchy.






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






26. The most flexible C data type: ______






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






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






29. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






32. A compiler feature that provides automated memory management






33. The root class in Objective-C






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






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






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






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






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






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






40. All objects are created on the _____






41. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






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






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






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






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






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






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






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