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






2. An object of unknown class. Interface is published through protocol declaration.






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






4. _____ data types can be both positive and negative






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






6. The root class in Objective-C






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






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






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






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






11. Placing a ____ before a normal variable name gives it's address






12. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






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






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






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






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






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






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






19. The most flexible C data type: ______






20. A struct may contain multiple ____ consisting of different data types






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






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






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






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






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






26. Square bracket syntax for calling a method






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






42. A compiler feature that provides automated memory management






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






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






45. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions






46. A ____ ____ is a situation where you free memory and then accidentally continue to use it






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






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






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






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