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. In Objective-C floats are more commonly used than ______






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






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






4. A ____ _____ is where you forget to free up memory






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






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






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






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






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






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






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






12. The root class in Objective-C






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






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






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






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






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






18. A compiler feature that provides automated memory management






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






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






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






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






23. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






29. Objective-C methods are called using ____ _____






30. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






39. Instance variables are optional in iOS if ________ are used






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






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






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






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






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






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






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






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






48. All objects are created on the _____






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






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