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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






3. _____ data types can be both positive and negative






4. A compiler feature that provides automated memory management






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






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






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






8. In object-oriented programming a procedure that can be executed by an object.






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






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






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






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






13. The most flexible C data type: ______






14. All objects are created on the _____






15. A struct may contain multiple ____ consisting of different data types






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






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






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






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






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






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






22. Initializer method traditionally begin with the _____ prefix






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






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






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






26. Square bracket syntax for calling a method






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






28. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






29. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






31. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






35. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






38. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






40. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






48. An object id with a value of 0.






49. Property attribute where the setter stores the assigned value but does not perform any memory management.






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