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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






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






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






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






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






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






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






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






12. ______ operators take a single operand






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






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






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






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






17. In object-oriented programming the object that is sent a message.






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






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






20. _____ operators take 2 operands






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






22. ______ data types are always zero or greate






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






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






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






26. All objects are created on the _____






27. The most flexible C data type: ______






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






29. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






31. The process of setting or reading the value at an address pointed to by a pointer






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






33. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






35. Square bracket syntax for calling a method






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






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






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






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






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






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






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






43. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






46. Objective-C methods are called using ____ _____






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






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






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






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