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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






2. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






11. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






19. An object id with a value of 0.






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






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






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






23. The most flexible C data type: ______






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






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






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






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






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






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






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






31. Objective-C methods are called using ____ _____






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






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






34. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






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






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






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






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






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






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






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






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






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






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






48. The root class in Objective-C






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






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