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. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






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






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






13. ARC is susceptible to retain _____






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






15. _____ allow indirect access and modification of a variable's value.






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






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






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






19. _____ operators take 2 operands






20. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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






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






24. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






26. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






29. ______ operators take a single operand






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






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






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






33. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






36. The most flexible C data type: ______






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






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






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






40. In object-oriented programming the object that is sent a message.






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






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






43. _____ data types can be both positive and negative






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






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






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






47. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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