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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






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






3. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






5. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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






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






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






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






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






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






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






13. Property attribute that synthesizes accessors that are not thread safe






14. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






17. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






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






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






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






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






26. The most flexible C data type: ______






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






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






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






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






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






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






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






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






35. All objects are created on the _____






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






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






38. The root class in Objective-C






39. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






41. In Objective-C floats are more commonly used than ______






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






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






44. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






45. _____ operators take 2 operands






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






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






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






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






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