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++; is an example of using a _____ operator






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






3. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






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






17. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






28. ______ data types are always zero or greate






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






30. All objects are created on the _____






31. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






35. The process of setting or reading the value at an address pointed to by a pointer






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






37. Same as class object. (second way to say it.)






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






39. Finding the method implementation to invoke in response to the message






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






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






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






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






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






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






46. Instance variables are optional in iOS if ________ are used






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






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






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






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