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






2. All objects are created on the _____






3. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






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






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






15. ______ operators take a single operand






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






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






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






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






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






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






22. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






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






30. Same as class object. (second way to say it.)






31. 3 Common Float data types: float - _____ - CGFloat






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






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






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






35. The most flexible C data type: ______






36. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






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






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






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






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






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






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






43. Objective-C methods are called using ____ _____






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






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






46. _____ data types can be both positive and negative






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






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






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






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