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






2. All objects are created on the _____






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






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






5. In object-oriented programming the object that is sent a message.






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






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






8. Objective-C methods are called using ____ _____






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






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






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






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






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






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






15. _____ data types can be both positive and negative






16. Initializer method traditionally begin with the _____ prefix






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






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






19. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






22. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






34. ARC is susceptible to retain _____






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






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






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






38. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






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






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






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






46. The most flexible C data type: ______






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






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






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. Instance variables are optional in iOS if ________ are used