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 a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






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






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






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






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






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






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






13. All objects are created on the _____






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






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






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






17. Square bracket syntax for calling a method






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






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






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






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






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






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






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






25. ARC is susceptible to retain _____






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






27. _____ data types can be both positive and negative






28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






31. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






48. A compiler feature that provides automated memory management






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






50. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.