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. ARC is susceptible to retain _____






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






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






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






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






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






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






8. All objects are created on the _____






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






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






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






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






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






14. The most flexible C data type: ______






15. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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






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






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






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






21. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






29. Square bracket syntax for calling a method






30. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






36. _____ operators take 2 operands






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






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






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






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






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






42. The _____ function can be used to print a message to the console






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






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






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






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






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






48. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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