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






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






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






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






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






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






7. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






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






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






19. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






24. In a format string the place holder for an object is ______






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






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






27. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






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






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






31. ______ data types are always zero or greate






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






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






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






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






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






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






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






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






40. A compiler feature that provides automated memory management






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






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






43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






46. Instance variables are optional in iOS if ________ are used






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






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






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






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