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. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






4. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






8. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






18. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






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






21. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






30. A ____ _____ is where you forget to free up memory






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






32. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






33. The most flexible C data type: ______






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






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






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






37. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






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






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






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






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






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






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






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






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






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






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