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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






2. Square bracket syntax for calling a method






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






4. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






6. The most flexible C data type: ______






7. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






9. An object id with a value of 0.






10. ARC is susceptible to retain _____






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






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






13. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






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






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






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






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






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






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






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






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






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






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






26. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






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






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






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






36. In the Objective-C language the declaration of a group of methods not associated with any particular class.






37. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






41. The root class in Objective-C






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






43. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






48. Objective-C methods are called using ____ _____






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






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