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. Property attribute that synthesizes only a getter for the property






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






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






4. _____ operators take 2 operands






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






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






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






8. ARC is susceptible to retain _____






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






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






11. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






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






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






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






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






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






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






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






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






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






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






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






27. a++; is an example of using a _____ operator






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






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






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






31. Instance variables are optional in iOS if ________ are used






32. All objects are created on the _____






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






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






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






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






37. _____ data types can be both positive and negative






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






39. Same as class object. (second way to say it.)






40. ______ data types are always zero or greate






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






42. ______ operators take a single operand






43. Initializer method traditionally begin with the _____ prefix






44. Objective-C is a _____ of the C language






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






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






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






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






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






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