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 way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






4. Objective-C methods are called using ____ _____






5. A compiler feature that provides automated memory management






6. _____ data types can be both positive and negative






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






8. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






15. A protocol declared as a category usually as a category of the NSObject class.






16. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






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






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






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






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






29. Square bracket syntax for calling a method






30. ______ operators take a single operand






31. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






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






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






35. ARC is susceptible to retain _____






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






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






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






39. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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






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. A set of method definitions that is segregated from the rest of the class definition.






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






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






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






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






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






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