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






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






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






4. Property attribute that causes the setter to store a copy of the assigned value






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






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






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






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






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






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






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






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






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






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






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






16. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






23. A compiler feature that provides automated memory management






24. _____ operators take 2 operands






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






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






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






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






29. Symbol used to denote a placeholder in a format string






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






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






32. _____ data types can be both positive and negative






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






34. ______ operators take a single operand






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






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






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






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






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






40. The most flexible C data type: ______






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






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






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






44. Initializer method traditionally begin with the _____ prefix






45. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






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