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. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






3. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






7. _____ data types can be both positive and negative






8. Objective-C's protocols are really about communicating _____ _______






9. A compiler feature that provides automated memory management






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






11. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






14. ARC is susceptible to retain _____






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






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






17. ____ provide a concise & elegant method for defining a discrete set of values






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






19. A protocol declared as a category usually as a category of the NSObject class.






20. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






25. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






35. Objective-C is a _____ of the C language






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






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






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






39. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






40. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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