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






2. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






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






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






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






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






10. a++; is an example of using a _____ operator






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






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






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






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






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






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






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






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






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






20. The most flexible C data type: ______






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






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






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






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






25. Property attribute that synthesizes both a getter and setter for the property






26. A compiler feature that provides automated memory management






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






28. In a format string the place holder for an object is ______






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






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






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






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






33. Objective-C methods are called using ____ _____






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






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






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






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






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






39. In Objective-C floats are more commonly used than ______






40. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






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






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






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






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






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