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. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






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






6. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






9. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






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






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. The first index in an array is valued at ____






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






17. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






18. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






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






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






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






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






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






30. Any method that can be used by an instance of a class rather than by the class object.






31. The root class in Objective-C






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






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






34. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






36. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






38. All objects are created on the _____






39. Objective-C is a _____ of the C language






40. ARC is susceptible to retain _____






41. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






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






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






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






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






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






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






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