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. An object that acts on behalf of another object.






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






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






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






5. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






20. A compiler feature that provides automated memory management






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






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






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






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






25. ______ data types are always zero or greate






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






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






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






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






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






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






32. Initializer method traditionally begin with the _____ prefix






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






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






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. All objects are created on the _____






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






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






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






41. The root class in Objective-C






42. Square bracket syntax for calling a method






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






44. Objective-C methods are called using ____ _____






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






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. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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