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 variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.






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






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






4. _____ allow you to add new methods to existing classes






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






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






7. The first index in an array is valued at ____






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






9. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.






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






11. A compiler feature that provides automated memory management






12. Property attribute that causes the setter to store a strong reference to the assigned value






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






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






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






16. Square bracket syntax for calling a method






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






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






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






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






21. Any method that can be used by an instance of a class rather than by the class object.






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






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






24. A struct may contain multiple ____ consisting of different data types






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






42. _____ operators take 2 operands






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. Property attribute that causes the setter to store a zeroing weak reference to the assigned value






45. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.






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






47. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______






48. _____ data types can be both positive and negative






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. Placing a ____ before a normal variable name gives it's address