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. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block






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






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






4. A compiler feature that provides automated memory management






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






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






7. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.






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






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






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






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






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






13. Finding the method implementation to invoke in response to the message






14. Objective-C binds methods and arguments at _____ instead of compile time






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






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






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






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






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






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






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






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






23. ______ data types are always zero or greate






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






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






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






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






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






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






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






31. The direct or indirect report of external activity especially user activity on the keyboard and mouse.






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






33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.






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






35. An object in another application - one that's a potential receiver for a remote message.






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






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






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






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






40. An object id with a value of 0.






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. Property attribute that synthesizes only a getter for the property






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






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






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






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






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






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






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






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests