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 Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






7. Objective-C methods are called using ____ _____






8. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






23. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






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






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






29. Another name for a class that's defined solely so that other classes can inherit from it.






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






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






32. A method that can operate on class objects rather than instances of the class.






33. Any class that's one step below another class in the inheritance hierarchy.






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






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






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






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






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






39. An object id with a value of 0.






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






41. ______ operators take a single operand






42. ARC is susceptible to retain _____






43. All objects are created on the _____






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






45. A compiler feature that provides automated memory management






46. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met






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






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






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






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