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. Data types are divided into two main categories: integer and ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






16. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






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






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






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






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






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






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






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. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






36. Objective-C methods are called using ____ _____






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






38. ______ operators take a single operand






39. The root class in Objective-C






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






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






42. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






45. ______ data types are always zero or greate






46. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






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