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. A variable that points to the memory address of another value






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






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






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






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






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






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






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






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






10. All objects are created on the _____






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






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






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






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






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






16. In a format string the place holder for an object is ______






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






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






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






20. An object that acts on behalf of another object.






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






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






23. 3 Common Float data types: float - _____ - CGFloat






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






25. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






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






32. Objective-C methods are called using ____ _____






33. Same as class object. (second way to say it.)






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






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






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






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






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






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






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






41. The root class in Objective-C






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






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






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






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






46. Initializer method traditionally begin with the _____ prefix






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






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






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






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