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 _____ function can be used to print a message to the console






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






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






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






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






6. Symbol used to denote a placeholder in a format string






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






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






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






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






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






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






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






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






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






16. Xcode sequence to examine an app for memory leaks or retain cycles






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






18. Square bracket syntax for calling a method






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






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






21. Another name for a class that's defined solely so that other classes can inherit from it.






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






23. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






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






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






29. All objects are created on the _____






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






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






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






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






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






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






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






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






38. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.






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






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






41. Initializer method traditionally begin with the _____ prefix






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






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






44. The root class in Objective-C






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






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






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. _____ allow you to add new methods to existing classes






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






50. Objective-C objects should use strong or weak ______