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. There are ____ fundamental building blocks in Objective-C






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






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






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






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






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






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






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






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






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






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






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






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






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






15. An object id with a value of 0.






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






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






18. _____ operators take 2 operands






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






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






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






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






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






24. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






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






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






38. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).






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






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






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






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






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






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






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






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






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






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






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






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