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. This symbol denotes a method as being an instance method






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






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






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






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






6. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






8. Square bracket syntax for calling a method






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






10. Property attribute that synthesizes accessors that are not thread safe






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






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






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






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






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






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






17. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






34. A compiler feature that provides automated memory management






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






36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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






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






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






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






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






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






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






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






49. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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