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. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






16. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






21. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






31. ______ operators take a single operand






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






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






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






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






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






37. Initializer method traditionally begin with the _____ prefix






38. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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






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






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






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






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






47. Three main categories of more complicated data structures:_______ - arrays and structs






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. A ____ _____ is where you forget to free up memory






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