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. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






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






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






6. A set of method definitions that is segregated from the rest of the class definition.






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






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 language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






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






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






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






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






17. The root class in Objective-C






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






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






20. ______ operators take a single operand






21. An object id with a value of 0.






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






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






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






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






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






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






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






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






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






31. Objective-C objects should use strong or weak ______






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






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






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






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






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






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






38. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica






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






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






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






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






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






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






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






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






47. _____ data types can be both positive and negative






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






49. ______ data types are always zero or greate






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