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. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






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






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






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






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






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






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






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






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






15. The root class in Objective-C






16. Objective-C methods are called using ____ _____






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






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






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






20. ______ data types are always zero or greate






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






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






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






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. A set of method definitions that is segregated from the rest of the class definition.






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






27. ______ operators take a single operand






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






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






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






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






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






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






34. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






39. ARC is susceptible to retain _____






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






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






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






43. A class is said to do this when it declares that it implements all the methods in the protocol.






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






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






46. a+b; is an example of using a _____ operator






47. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






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






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