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






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






3. Square bracket syntax for calling a method






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






5. Xcode sequence to convert non-ARC apps to ARC






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






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






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






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






10. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






12. ______ data types are always zero or greate






13. ARC is susceptible to retain _____






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






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






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






17. Initializer method traditionally begin with the _____ prefix






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






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






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






21. Objective-C methods are called using ____ _____






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






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






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






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






26. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






42. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






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






46. ______ operators take a single operand






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






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






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






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