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 way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






4. All objects are created on the _____






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






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






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






8. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






12. The most flexible C data type: ______






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






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






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






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






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






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






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






20. The root class in Objective-C






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






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






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






25. Square bracket syntax for calling a method






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






27. An object id with a value of 0.






28. ARC is susceptible to retain _____






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






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






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






32. _____ operators take 2 operands






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






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






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






36. _____ data types can be both positive and negative






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






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






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






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






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






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






43. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






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






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






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






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






50. Objective-C methods are called using ____ _____