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. ______ data types are always zero or greate






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






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






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






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






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






7. Objective-C is a _____ of the C language






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






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






10. A ____ ____ is a situation where you free memory and then accidentally continue to use it






11. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






15. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






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






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






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






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






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






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






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






25. 3 Common Float data types: float - _____ - CGFloat






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






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






28. ____ provide a concise & elegant method for defining a discrete set of values






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






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






31. ARC is susceptible to retain _____






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






33. The root class in Objective-C






34. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






39. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






48. Objective-C methods are called using ____ _____






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






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