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. Finding the method implementation to invoke in response to the message






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






18. The most flexible C data type: ______






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






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






21. A compiler feature that provides automated memory management






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






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






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






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






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






27. Objective-C methods are called using ____ _____






28. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






30. ARC is susceptible to retain _____






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






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






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






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






35. ______ data types are always zero or greate






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






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






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






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






40. _____ operators take 2 operands






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






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






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






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






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






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






47. ______ operators take a single operand






48. _____ allow you to add new methods to existing classes






49. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






50. In Objective-C floats are more commonly used than ______