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






2. _____ allow indirect access and modification of a variable's value.






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






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






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






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






7. _____ data types can be both positive and negative






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






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






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






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






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






13. A class is said to do this when it declares that it implements all the methods in the protocol.






14. The most flexible C data type: ______






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






16. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






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






20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.






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






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






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






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






25. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.






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






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






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






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






30. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






41. All objects are created on the _____






42. _____ operators take 2 operands






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






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






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






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






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






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






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






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