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. An object id with a value of 0.






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






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






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






5. Initializer method traditionally begin with the _____ prefix






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






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






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






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






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






11. In a format string the place holder for an object is ______






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






31. Objective-C methods are called using ____ _____






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






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






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






35. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.






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






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






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






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






40. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.






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






42. _____ data types can be both positive and negative






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






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






45. _____ operators take 2 operands






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






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






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






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






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