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. The _____ function can be used to print a message to the console






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






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






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






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






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






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






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






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






10. To destroy an object set the variable that points to it to _____






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






12. Symbol used to denote a placeholder in a format string






13. Short for mutual exclusion semaphore. An object used to synchronize thread execution.






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






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






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






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






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






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






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






21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct






22. A ____ _____ is where you forget to free up memory






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






24. A compiler feature that provides automated memory management






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






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






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






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






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






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






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






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






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






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






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






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






37. Objective-C methods are called using ____ _____






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






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






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






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






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






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






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






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






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






47. All objects are created on the _____






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






49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.






50. ______ operators take a single operand