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. Symbol used to denote a placeholder in a format string






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






4. Finding the method implementation to invoke in response to the message






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






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






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






8. _____ allow you to add new methods to existing classes






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






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






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






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






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






14. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






33. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






37. Property attribute that synthesizes accessors that are not thread safe






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






39. _____ operators take 2 operands






40. The root class in Objective-C






41. A compiler feature that provides automated memory management






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






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






44. ______ operators take a single operand






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






46. Objective-C methods are called using ____ _____






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






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






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






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