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 logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






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






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






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






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






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






8. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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






10. Objective-C objects should use strong or weak ______






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






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






13. There are ____ fundamental building blocks in Objective-C






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






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






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






17. ______ data types are always zero or greate






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






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






20. _____ data types can be both positive and negative






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






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






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






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






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






26. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






38. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






42. Square bracket syntax for calling a method






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






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






45. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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