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






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






3. All objects are created on the _____






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






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






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






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






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






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






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






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






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






13. The root class in Objective-C






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






15. C-style strings are stored in an array of _____






16. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






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






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






21. _____ data types can be both positive and negative






22. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






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






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






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






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






31. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






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






38. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






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






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






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






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






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






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






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






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






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






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