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 where you forget to free up memory






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






3. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






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






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






13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






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






16. Objective-C objects should use strong or weak ______






17. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






20. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






24. C-style strings always end with a ____ character






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






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






27. All objects are created on the _____






28. The most flexible C data type: ______






29. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






32. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






36. The root class in Objective-C






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






38. A compiler feature that provides automated memory management






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






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






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






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






43. ______ data types are always zero or greate






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






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






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






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






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






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






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