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. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






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






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






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






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






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






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






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






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






11. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






13. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






29. _____ operators take 2 operands






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






31. The most flexible C data type: ______






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






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






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






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






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






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






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






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






40. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






43. ______ data types are always zero or greate






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






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






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






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






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






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






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