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. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.






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






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






4. A protocol declared as a category usually as a category of the NSObject class.






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






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






7. Square bracket syntax for calling a method






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






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






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






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






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






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






14. Objective-C methods are called using ____ _____






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






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






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






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






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






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






21. The root class in Objective-C






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






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






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






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






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






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






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






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






30. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






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






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






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






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






38. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.






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






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






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






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






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






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






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






46. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.






47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles






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






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






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