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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






5. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






6. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






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






20. A set of method definitions that is segregated from the rest of the class definition.






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






22. The most flexible C data type: ______






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






24. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






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






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






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






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






30. A compiler feature that provides automated memory management






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






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






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






34. Property attribute that causes the setter to store a copy of the assigned value






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






36. ______ data types are always zero or greate






37. The root class in Objective-C






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






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






40. Objective-C methods are called using ____ _____






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






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






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






44. ______ operators take a single operand






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






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






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






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






49. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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