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. Instance variables are optional in iOS if ________ are used






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






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






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






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






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






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






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






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






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






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






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






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






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






15. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






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. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






20. Property attribute that causes the setter to store a strong reference to the assigned value






21. Objective-C methods are called using ____ _____






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






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






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






25. _____ operators take 2 operands






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






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






28. _____ allow indirect access and modification of a variable's value.






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






30. Square bracket syntax for calling a method






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






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






33. An object id with a value of 0.






34. All objects are created on the _____






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






36. This symbol denotes a method as being an instance method






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






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






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






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






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






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. The process of setting or reading the value at an address pointed to by a pointer






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






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






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






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






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






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






50. _____ data types can be both positive and negative