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. Symbol used to denote a placeholder in a format string






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






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






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






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






6. A compiler feature that provides automated memory management






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






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






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






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






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






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






13. The most flexible C data type: ______






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






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






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






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






18. To destroy an object set the variable that points to it to _____






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






20. The root class in Objective-C






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






22. All objects are created on the _____






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






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






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






26. Any class that's one step below another class in the inheritance hierarchy.






27. Placing a ____ before a normal variable name gives it's address






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






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






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






31. _____ operators take 2 operands






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






33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






34. Initializer method traditionally begin with the _____ prefix






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. _____ data types can be both positive and negative






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






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






39. ____ provide a concise & elegant method for defining a discrete set of values






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






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






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






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






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






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






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






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






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






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






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