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. An architecture that facilitates communication between objects in different address spaces.






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






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






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






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






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






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






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






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






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






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






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






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






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






15. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






33. Initializer method traditionally begin with the _____ prefix






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






35. The root class in Objective-C






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






37. In the Objective-C language the declaration of a group of methods not associated with any particular class.






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






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






40. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






41. An object id with a value of 0.






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






43. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






45. In a home building analogy a ____ is the blueprint and the object is the house






46. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






49. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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