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. _____ allow indirect access and modification of a variable's value.






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






4. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






6. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






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






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






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






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






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






13. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






14. A compiler feature that provides automated memory management






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






16. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






18. _____ operators take 2 operands






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






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






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






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






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






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






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






26. Initializer method traditionally begin with the _____ prefix






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






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






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






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






31. ______ data types are always zero or greate






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






33. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






35. Square bracket syntax for calling a method






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






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






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






39. All objects are created on the _____






40. An object id with a value of 0.






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






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






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






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






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






46. The root class in Objective-C






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






48. ARC is susceptible to retain _____






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






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