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. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






7. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






18. The most flexible C data type: ______






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






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






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. Any class that's one step below another class in the inheritance hierarchy.






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






24. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






25. Objective-C objects should use strong or weak ______






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






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






28. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






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






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






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






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






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






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






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






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






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






41. Square bracket syntax for calling a method






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






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






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






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






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






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






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






49. An object id with a value of 0.






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