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 advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






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






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






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






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






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






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






9. ______ data types are always zero or greate






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






11. C-style strings always end with a ____ character






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






33. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






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






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






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






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






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






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






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






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






42. All objects are created on the _____






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






44. The most flexible C data type: ______






45. A compiler feature that provides automated memory management






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






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






48. ____ provide a concise & elegant method for defining a discrete set of values






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






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