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 variable that points to the memory address of another value






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






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






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






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






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






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






8. All objects are created on the _____






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






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






11. The root class in Objective-C






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






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






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






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






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






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






18. Objective-C methods are called using ____ _____






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






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






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






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






23. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






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






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






31. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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






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






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






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






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






40. An object id with a value of 0.






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






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






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






44. The most flexible C data type: ______






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






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






47. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






48. _____ operators take 2 operands






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






50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'