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. Finding the method implementation to invoke in response to the message






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






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






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






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






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






7. In a home building analogy a ____ is the blueprint and the object is the house






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






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






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






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






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






13. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.






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






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






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






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






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






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






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






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






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






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






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






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






26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods






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






28. All objects are created on the _____






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






30. The most flexible C data type: ______






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






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






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






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






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






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






37. The root class in Objective-C






38. Objective-C methods are called using ____ _____






39. _____ data types can be both positive and negative






40. ______ data types are always zero or greate






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






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






43. Square bracket syntax for calling a method






44. An architecture that facilitates communication between objects in different address spaces.






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






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






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






48. ARC is susceptible to retain _____






49. Objective-C is a _____ of the C language






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