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. Any class that's one step below another class in the inheritance hierarchy.






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






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






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






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






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






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






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. Property attribute that causes the setter to store a strong reference to the assigned value






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






11. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects






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






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






14. In object-oriented programming the object that is sent a message.






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






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






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






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






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






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






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






22. _____ data types can be both positive and negative






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






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






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






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






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






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






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






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






31. ARC is susceptible to retain _____






32. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.






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






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






35. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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