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 message sent from one application to an object in another application.






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






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






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






5. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






11. A variable that points to the memory address of another value






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






13. The most flexible C data type: ______






14. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.






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






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






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






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






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






20. _____ data types can be both positive and negative






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






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






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






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






25. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






26. Square bracket syntax for calling a method






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






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






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






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






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






32. _____ operators take 2 operands






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






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






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






36. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






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






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






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






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






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






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






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






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






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






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






50. Property attribute that synthesizes both a getter and setter for the property