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






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






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






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






5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






9. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






18. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






19. A message sent from one application to an object in another application.






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






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






22. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






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






27. The process of setting or reading the value at an address pointed to by a pointer






28. All objects are created on the _____






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






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






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






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






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






34. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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