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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword






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






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






4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments






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






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






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






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






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






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






11. Property attribute that causes the setter to store a copy of the assigned value






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






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






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






15. An object in another application - one that's a potential receiver for a remote message.






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






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






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






19. _____ allow you to add new methods to existing classes






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






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






22. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






32. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






33. All objects are created on the _____






34. ______ operators take a single operand






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






36. Any class that's one step below another class in the inheritance hierarchy.






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






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






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






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






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. Initializer method traditionally begin with the _____ prefix






43. Square bracket syntax for calling a method






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






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






46. The root class in Objective-C






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






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






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






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