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






2. Another name for a class that's defined solely so that other classes can inherit from it.






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






4. ARC is susceptible to retain _____






5. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






8. a+b; is an example of using a _____ operator






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






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. A method that can operate on class objects rather than instances of the class.






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. All objects are created on the _____






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






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






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






17. Property attribute that synthesizes accessors that are not thread safe






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






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






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






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






22. ______ data types are always zero or greate






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






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






25. A compiler feature that provides automated memory management






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






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






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






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






30. An object id with a value of 0.






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






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






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






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






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






36. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






38. Symbol used to denote a placeholder in a format string






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






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






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






42. The most flexible C data type: ______






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






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






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






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






47. _____ data types can be both positive and negative






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






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






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