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. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






11. Initializer method traditionally begin with the _____ prefix






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






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






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






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






16. _____ data types can be both positive and negative






17. Property attribute that synthesizes accessors that are not thread safe






18. ______ operators take a single operand






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






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






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






22. Finding the method implementation to invoke in response to the message






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






41. Any class that's one step below another class in the inheritance hierarchy.






42. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






43. Symbol used to denote a placeholder in a format string






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






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






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






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






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






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






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