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. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






6. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






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






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






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






11. _____ data types can be both positive and negative






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






13. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro






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






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






16. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






47. The most flexible C data type: ______






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






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






50. An object id with a value of 0.