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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






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






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






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






8. Square bracket syntax for calling a method






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






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






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






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






13. _____ allow indirect access and modification of a variable's value.






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






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






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






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






18. All objects are created on the _____






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






20. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






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






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






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






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






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






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






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






32. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger






33. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






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






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






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






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






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






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






41. A protocol declared as a category usually as a category of the NSObject class.






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






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






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






45. This symbol denotes a method as being a class method






46. Property attribute that synthesizes only a getter for the property






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






48. ______ operators take a single operand






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






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