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 synthesizes both a getter and setter for the property






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






27. The root class in Objective-C






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






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






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






31. _____ operators take 2 operands






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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