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






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






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






4. Square bracket syntax for calling a method






5. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






17. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






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






21. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.






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






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






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






25. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






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






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






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






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. Initializer method traditionally begin with the _____ prefix






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






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






36. _____ operators take 2 operands






37. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






38. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






42. A compiler feature that provides automated memory management






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






44. ______ data types are always zero or greate






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






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






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






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






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






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