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






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






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






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






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






6. Discovering the class of an object at runtime rather than at compile time.






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






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






9. The root class in Objective-C






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






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






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






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






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






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






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






17. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






29. ______ operators take a single operand






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






31. The most flexible C data type: ______






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






33. Square bracket syntax for calling a method






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






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






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






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






38. ARC is susceptible to retain _____






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






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






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






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. Same as class object. (first way to say it.)






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






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






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






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






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






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






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