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. Placing a ____ before a normal variable name gives it's address






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






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






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






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






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






7. An object id with a value of 0.






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






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






10. ______ data types are always zero or greate






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






12. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






17. A compiler feature that provides automated memory management






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






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






20. This symbol denotes a method as being a class method






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






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






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






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






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






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






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






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






29. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






31. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






50. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.