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. All objects are created on the _____






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






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






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






5. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






13. Discovering the class of an object at runtime rather than at compile time.






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






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






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






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






18. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.






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






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






21. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






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






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






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






25. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.






26. Xcode sequence to convert non-ARC apps to ARC






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. The first index in an array is valued at ____






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






30. Objective-C methods are called using ____ _____






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






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






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






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






35. ______ operators take a single operand






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






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






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






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






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






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






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






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






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






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






46. _____ operators take 2 operands






47. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.






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






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






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