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. There are ____ fundamental building blocks in Objective-C






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






4. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






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






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






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






11. ____ provide a concise & elegant method for defining a discrete set of values






12. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






13. _____ data types can be both positive and negative






14. An object of unknown class. Interface is published through protocol declaration.






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






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






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






18. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






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






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






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






24. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






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






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






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






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






33. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






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






37. Property attribute that causes the setter to store a copy of the assigned value






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






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






40. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






41. Data types are divided into two main categories: integer and ______






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






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






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






45. ARC is susceptible to retain _____






46. The root class in Objective-C






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






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






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






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