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. All objects are created on the _____






2. ARC is susceptible to retain _____






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






4. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






21. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.






22. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






25. Property attribute that synthesizes both a getter and setter for the property






26. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).






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. Data types are divided into two main categories: integer and ______






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






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






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






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






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






34. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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






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






37. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






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






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






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






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






42. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






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






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






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






47. A compiler feature that provides automated memory management






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






49. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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