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 one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






5. Placing a ____ before a normal variable name gives it's address






6. ______ data types are always zero or greate






7. _____ data types can be both positive and negative






8. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






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






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






13. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






15. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






42. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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