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 defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






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






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






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






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






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






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






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






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






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. An object that acts on behalf of another object.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






35. The most flexible C data type: ______






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






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






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






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






40. The root class in Objective-C






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






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






43. ______ operators take a single operand






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. The process of setting or reading the value at an address pointed to by a pointer






46. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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