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. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






5. ARC is susceptible to retain _____






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






7. The most flexible C data type: ______






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






9. Initializer method traditionally begin with the _____ prefix






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






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






12. Same as class object. (first way to say it.)






13. Objective-C methods are called using ____ _____






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






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






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






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






18. An object id with a value of 0.






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






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






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






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






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






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






25. _____ operators take 2 operands






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






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






28. Square bracket syntax for calling a method






29. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.






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






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






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






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






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






35. In Objective-C floats are more commonly used than ______






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






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






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






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






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






41. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






46. Data types are divided into two main categories: integer and ______






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






48. ______ data types are always zero or greate






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






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