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 where the setter stores the assigned value but does not perform any memory management.






2. Square bracket syntax for calling a method






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






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






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






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






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






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






9. The most flexible C data type: ______






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






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






12. Instance variables are optional in iOS if ________ are used






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






14. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






18. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






20. The root class in Objective-C






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






22. A message sent from one application to an object in another application.






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






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






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






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






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






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






29. Property attribute that synthesizes both a getter and setter for the property






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






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






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






33. A compiler feature that provides automated memory management






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






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






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






37. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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






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






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






45. In Objective-C floats are more commonly used than ______






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






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






48. Initializer method traditionally begin with the _____ prefix






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






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.