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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






5. Objective-C methods are called using ____ _____






6. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






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






10. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






12. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






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






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






27. This symbol denotes a method as being an instance method






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






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






30. _____ operators take 2 operands






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






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






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






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






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






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






37. Xcode sequence to convert non-ARC apps to ARC






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






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






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






41. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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






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






45. _____ 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'.






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






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






48. The most flexible C data type: ______






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 compiler feature that provides automated memory management