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. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






6. A set of method definitions that is segregated from the rest of the class definition.






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






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






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






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






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






12. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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






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






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






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






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






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






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






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






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






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






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






26. The root class in Objective-C






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






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






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






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






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






33. ARC is susceptible to retain _____






34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






36. ______ operators take a single operand






37. This symbol denotes a method as being a class method






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






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






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






41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






46. ______ data types are always zero or greate






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






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






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






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