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. The root class in Objective-C






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






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






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






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






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






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






8. ARC is susceptible to retain _____






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






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






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






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






13. Square bracket syntax for calling a method






14. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






15. All objects are created on the _____






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






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






18. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.






19. A set of method definitions that is segregated from the rest of the class definition.






20. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






35. Initializer method traditionally begin with the _____ prefix






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






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






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






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






40. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






42. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






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






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






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