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. Any method that can be used by an instance of a class rather than by the class object.






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






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






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






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






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






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






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






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






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






11. Property attribute that causes the setter to store a copy of the assigned value






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






13. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.






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






15. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.






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






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






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






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






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






21. Initializer method traditionally begin with the _____ prefix






22. An object id with a value of 0.






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






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






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






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






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






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






29. All objects are created on the _____






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






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






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






33. _____ operators take 2 operands






34. _____ data types can be both positive and negative






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






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






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






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






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






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






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






42. The most flexible C data type: ______






43. _____ allow indirect access and modification of a variable's value.






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






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






46. The root class in Objective-C






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






48. Objective-C methods are called using ____ _____






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. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership