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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






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






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






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






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






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






16. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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






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






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






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






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






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






25. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






26. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






27. A compiler feature that provides automated memory management






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






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






30. ______ operators take a single operand






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






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






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






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






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






36. Any method that can be used by an instance of a class rather than by the class object.






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






38. The most flexible C data type: ______






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






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






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






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






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






44. Symbol used to denote a placeholder in a format string






45. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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