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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






6. A ____ _____ is where you forget to free up memory






7. ______ operators take a single operand






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






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






10. Initializer method traditionally begin with the _____ prefix






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






12. ______ data types are always zero or greate






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






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






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






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






17. A compiler feature that provides automated memory management






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






19. _____ operators take 2 operands






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






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






22. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






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






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






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






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






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






33. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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






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






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






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






41. An object id with a value of 0.






42. Objective-C methods are called using ____ _____






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






44. _____ data types can be both positive and negative






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






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






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






48. In object-oriented programming a procedure that can be executed by an object.






49. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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