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. Any method that can be used by an instance of a class rather than by the class object.






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






3. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






13. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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






18. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






30. The first index in an array is valued at ____






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






32. A compiler feature that provides automated memory management






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






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






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






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






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






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






39. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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