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 method that can operate on class objects rather than instances of the class.






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






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






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






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






6. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






25. The most flexible C data type: ______






26. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






29. Objective-C methods are called using ____ _____






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






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






32. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






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






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






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






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






45. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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