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. An object of unknown class. Interface is published through protocol declaration.






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






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






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






5. _____ data types can be both positive and negative






6. Instance variables are optional in iOS if ________ are used






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






22. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






26. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






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






30. The most flexible C data type: ______






31. _____ operators take 2 operands






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






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






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






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






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






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






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






39. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






42. All objects are created on the _____






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






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






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






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






47. A compiler feature that provides automated memory management






48. Property attribute where the setter stores the assigned value but does not perform any memory management.






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






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