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. To destroy an object set the variable that points to it to _____






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






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






4. ______ operators take a single operand






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






6. Objective-C methods are called using ____ _____






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






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






9. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






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






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






14. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






23. The root class in Objective-C






24. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






29. _____ data types can be both positive and negative






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






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






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






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






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






35. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






38. The most flexible C data type: ______






39. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






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






45. C-style strings always end with a ____ character






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






47. A protocol declared as a category usually as a category of the NSObject class.






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






49. A compiler feature that provides automated memory management






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