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++; is an example of using a _____ operator






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






23. An object id with a value of 0.






24. _____ data types can be both positive and negative






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






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






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






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






29. The most flexible C data type: ______






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






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






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






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






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






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






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






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






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






39. Objective-C methods are called using ____ _____






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






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






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






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






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






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






46. The root class in Objective-C






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






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






49. Initializer method traditionally begin with the _____ prefix






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