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. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'






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






3. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






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






7. A variable that points to the memory address of another value






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






9. ______ operators take a single operand






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. Xcode sequence to examine an app for memory leaks or retain cycles






12. Objective-C's protocols are really about communicating _____ _______






13. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






15. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.






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






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






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






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






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






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






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






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






24. An object id with a value of 0.






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






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






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






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






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






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






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






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






33. Three main categories of more complicated data structures:_______ - arrays and structs






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






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






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






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






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






39. The root class in Objective-C






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






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






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






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






44. _____ operators take 2 operands






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






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






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






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






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






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