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 defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






2. All objects are created on the _____






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






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






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






6. A compiler feature that provides automated memory management






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






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






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






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. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






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






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






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






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






22. Property attribute that synthesizes only a getter for the property






23. There are ____ fundamental building blocks in Objective-C






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






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






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






27. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






28. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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






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






33. ____ provide a concise & elegant method for defining a discrete set of values






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






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






36. ______ data types are always zero or greate






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






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






39. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






48. An object id with a value of 0.






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






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