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






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






3. ARC is susceptible to retain _____






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






5. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.






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






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






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






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






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






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






12. The most flexible C data type: ______






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






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






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






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






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






18. The root class in Objective-C






19. This symbol denotes a method as being an instance method






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






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






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






23. _____ data types can be both positive and negative






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






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






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






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






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






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






30. Square bracket syntax for calling a method






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






32. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.






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. a++; is an example of using a _____ operator






35. All objects are created on the _____






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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