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. Finding the method implementation to invoke in response to the message






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






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






4. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






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






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






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






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






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






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






13. _____ data types can be both positive and negative






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






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






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






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






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






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






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






21. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






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






31. ______ operators take a single operand






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






33. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






34. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






38. ______ data types are always zero or greate






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






40. The most flexible C data type: ______






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






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






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






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






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






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






47. All objects are created on the _____






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






49. Initializer method traditionally begin with the _____ prefix






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