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






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






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






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






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






6. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






7. a++; is an example of using a _____ operator






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






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






10. All objects are created on the _____






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






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






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






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






15. ______ data types are always zero or greate






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






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






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






19. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






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






25. Placing a ____ before a normal variable name gives it's address






26. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






27. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






29. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






43. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






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