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






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






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






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






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






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






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






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






9. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






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






13. ARC is susceptible to retain _____






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






15. ______ data types are always zero or greate






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






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






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






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






20. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






22. All objects are created on the _____






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






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






25. _____ operators take 2 operands






26. _____ data types can be both positive and negative






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






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






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






30. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






32. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






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






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






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






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






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. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






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