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. Same as class object. (first way to say it.)






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






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






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






5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






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






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






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






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






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






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






13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






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






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






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






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






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






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






21. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






23. 3 Common Float data types: float - _____ - CGFloat






24. A compiler feature that provides automated memory management






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






26. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






27. In object-oriented programming the object that is sent a message.






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






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






30. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






40. Square bracket syntax for calling a method






41. Symbol used to denote a placeholder in a format string






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






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






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






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






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






47. Initializer method traditionally begin with the _____ prefix






48. The root class in Objective-C






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






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