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. Objective-C binds methods and arguments at _____ instead of compile time






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






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






4. The most flexible C data type: ______






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






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






7. _____ data types can be both positive and negative






8. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






10. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






18. All objects are created on the _____






19. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






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






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






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






25. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






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






31. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






39. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






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






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






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






44. The _____ function can be used to print a message to the console






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






46. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






48. ______ operators take a single operand






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






50. Square bracket syntax for calling a method