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. Same as class object. (first way to say it.)






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






18. A variable that points to the memory address of another value






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






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






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






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






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






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






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






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






27. _____ data types can be both positive and negative






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






29. Objective-C methods are called using ____ _____






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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






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






39. _____ allow indirect access and modification of a variable's value.






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






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






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






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






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






45. Square bracket syntax for calling a method






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






47. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






49. The most flexible C data type: ______






50. ______ data types are always zero or greate