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






2. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






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






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






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






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






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






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






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






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






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






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






13. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






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






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






18. Objective-C's protocols are really about communicating _____ _______






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






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






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






22. A set of method definitions that is segregated from the rest of the class definition.






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






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






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






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






27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






30. An object of unknown class. Interface is published through protocol declaration.






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






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






33. ______ data types are always zero or greate






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






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






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






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






38. A compiler feature that provides automated memory management






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






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






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






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






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






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






45. ARC is susceptible to retain _____






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






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






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






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






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