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 process of setting or reading the value at an address pointed to by a pointer






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






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






4. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






13. ______ operators take a single operand






14. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






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






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






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






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






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






21. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






33. The _____ function can be used to print a message to the console






34. A set of method definitions that is segregated from the rest of the class definition.






35. An object id with a value of 0.






36. Initializer method traditionally begin with the _____ prefix






37. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






47. A compiler feature that provides automated memory management






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






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






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