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 part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






4. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






11. ARC is susceptible to retain _____






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






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






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






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






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






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






18. An object id with a value of 0.






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






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






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






22. All objects are created on the _____






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






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






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






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






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






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






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






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






31. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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