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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method






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






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






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






5. The most flexible C data type: ______






6. Data types are divided into two main categories: integer and ______






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






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






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






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






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






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






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






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






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






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






17. In object-oriented programming the object that is sent a message.






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






19. Square bracket syntax for calling a method






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






21. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






34. Objective-C methods are called using ____ _____






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






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






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






38. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.






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






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






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






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






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






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






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






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






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






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






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






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