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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






6. Objective-C methods are called using ____ _____






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






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






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






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






11. Square bracket syntax for calling a method






12. The root class in Objective-C






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






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






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






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






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






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






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






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






21. All objects are created on the _____






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






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






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






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






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






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






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






29. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






41. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






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






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






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






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






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






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






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