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. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






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






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






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






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






8. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






17. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






21. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






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






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






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






26. A compiler feature that provides automated memory management






27. The root class in Objective-C






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






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






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






31. Initializer method traditionally begin with the _____ prefix






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






33. All objects are created on the _____






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






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






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






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






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






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






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






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






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






43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






44. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






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






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






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






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






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