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. Same as class object. (first way to say it.)






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






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






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






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






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






7. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






17. Objective-C methods are called using ____ _____






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






19. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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






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






31. Initializer method traditionally begin with the _____ prefix






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






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






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






35. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






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






44. The most flexible C data type: ______






45. _____ data types can be both positive and negative






46. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






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






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