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. Objective-C's protocols are really about communicating _____ _______






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






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






4. Instance variables are optional in iOS if ________ are used






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






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






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






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






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. Property attribute that synthesizes accessors that are not thread safe






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






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






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






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






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






17. All objects are created on the _____






18. ______ data types are always zero or greate






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






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






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






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






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






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






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






26. Initializer method traditionally begin with the _____ prefix






27. ______ operators take a single operand






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






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






30. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.






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. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






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






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






44. ARC is susceptible to retain _____






45. Pointers are declared by placing a(n) ___ between the type declaration and the variable name






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






47. a+b; is an example of using a _____ operator






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






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






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