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. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






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






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






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






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






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






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






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






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






15. Three main categories of more complicated data structures:_______ - arrays and structs






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






17. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






20. A compiler feature that provides automated memory management






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






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






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






24. The root class in Objective-C






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






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






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






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






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






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






31. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






33. ARC is susceptible to retain _____






34. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






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






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






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






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






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






42. Placing a ____ before a normal variable name gives it's address






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






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






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






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






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






48. This symbol denotes a method as being an instance method






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






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