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. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






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






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






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






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






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






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






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






11. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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. Initializer method traditionally begin with the _____ prefix






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






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






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






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






21. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






24. The root class in Objective-C






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






26. The most flexible C data type: ______






27. Square bracket syntax for calling a method






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






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






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






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






32. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






33. ______ data types are always zero or greate






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






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






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






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






38. An object in another application - one that's a potential receiver for a remote message.






39. a+b; is an example of using a _____ operator






40. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






45. Same as class object. (first way to say it.)






46. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






50. ______ operators take a single operand