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. This symbol denotes a method as being a class method






2. There are ____ fundamental building blocks in Objective-C






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






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






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






6. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings






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






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






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






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






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






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






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






14. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






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






17. Property attribute that causes the setter to store a strong reference to the assigned value






18. The root class in Objective-C






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






20. All objects are created on the _____






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






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






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






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






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






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






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






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






29. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.






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






31. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership






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






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






34. _____ operators take 2 operands






35. A compiler feature that provides automated memory management






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






37. An object in another application - one that's a potential receiver for a remote message.






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






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






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






41. Another name for a class that's defined solely so that other classes can inherit from it.






42. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






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






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






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






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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages






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