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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






2. Square bracket syntax for calling a method






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






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






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






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






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






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






9. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






10. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






17. In a format string the place holder for an object is ______






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






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






20. Initializer method traditionally begin with the _____ prefix






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






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






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






24. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






43. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






45. Data types are divided into two main categories: integer and ______






46. _____ operators take 2 operands






47. ARC is susceptible to retain _____






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






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






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