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






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






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






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






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






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






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






8. This symbol denotes a method as being a class method






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






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






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






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






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






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






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






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






17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






20. _____ operators take 2 operands






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






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






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






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






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






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






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






28. All objects are created on the _____






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. The process of setting or reading the value at an address pointed to by a pointer






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






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






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. Discovering the class of an object at runtime rather than at compile time.






35. Xcode sequence to examine an app for memory leaks or retain cycles






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






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






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






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






40. ARC is susceptible to retain _____






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






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






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






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






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






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






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






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






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






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