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 nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






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






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






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






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






14. Objective-C methods are called using ____ _____






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






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






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






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






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






20. Initializer method traditionally begin with the _____ prefix






21. In a format string the place holder for an object is ______






22. All objects are created on the _____






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






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






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






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






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






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






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






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






31. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






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






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






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






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






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






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






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






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






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






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






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






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. _____ operators take 2 operands






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






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






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






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






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