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






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






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






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






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






6. ______ data types are always zero or greate






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






8. All objects are created on the _____






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






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






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






12. A compiler feature that provides automated memory management






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






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






15. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






16. A method that can operate on class objects rather than instances of the class.






17. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






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






24. _____ data types can be both positive and negative






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






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






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






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






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






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






31. In a format string the place holder for an object is ______






32. In object-oriented programming a procedure that can be executed by an object.






33. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






44. Objective-C binds methods and arguments at _____ instead of compile time






45. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






48. A message sent from one application to an object in another application.






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






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