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. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






2. C-style strings always end with a ____ character






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






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






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






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






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






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






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






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






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






12. ______ data types are always zero or greate






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






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






15. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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






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






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






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






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






21. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






22. The root class in Objective-C






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






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






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






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






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






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






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






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






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






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






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






34. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






39. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






40. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






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






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






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






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






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






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






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