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. Property attribute that synthesizes both a getter and setter for the property






2. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






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






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






17. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






19. The most flexible C data type: ______






20. All objects are created on the _____






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






22. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






25. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






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






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






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






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






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






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






37. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






47. Discovering the class of an object at runtime rather than at compile time.






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






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






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