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. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






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






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






8. The most flexible C data type: ______






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






10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






12. Objective-C's protocols are really about communicating _____ _______






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






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






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






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






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






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






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






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






21. An object id with a value of 0.






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






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






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






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






26. ARC is susceptible to retain _____






27. A compiler feature that provides automated memory management






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






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






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






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






32. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






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






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






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






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






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






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






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






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






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






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






44. ______ data types are always zero or greate






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






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






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






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






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






50. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments