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 language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






2. Objective-C is a _____ of the C language






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






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






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






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






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






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






9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






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






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






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






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






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






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






19. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






27. The most flexible C data type: ______






28. Initializer method traditionally begin with the _____ prefix






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






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






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






32. Square bracket syntax for calling a method






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






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






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






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






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






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






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






40. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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