NAME

Question types


Start with


Question limit

of 12 available terms

Print test

12 Matching questions

  1. You have an array called 'a'. Write a command to add an empty object to the front of the array.
  2. You have an array called 'a'. Write a command to add an object called 'myObj' to the end of the array.
  3. An NSArray is _____ which means you cannot add or remove objects after the array is instantiated
  4. Primitives and C structures ____ be added to an array
  5. When an object is added to an array, it is actually the _____ of that object in memory that is stored in the array
  6. NSMutableArray lets you add or remove objects ______
  7. You have an array called 'a'. Write a statement using message notation that stores the number of objects stored in 'a' as 'numberOfObjects'
  8. An array is an _____ list of objects, and these objects may be accessed by an _______
  9. You have an array of NSStrings called 'a'. Write a command to retrieve the 3rd string, stored in an NSString called 'myString'. Assume 'a' has at least 3 elements.
  10. An array is a _____ object.
  11. A single array ____ contain objects of different types
  12. You have an array called 'a'. Write a command to add an object called 'myObj' to the front of the array.
  1. a address
  2. b ordered...index
  3. c dynamically
  4. d [a insertObject:myObj atIndex:0];
  5. e int numberOfObjects = [a count];
  6. f [a addObject: myObj];
  7. g immutable
  8. h collection
  9. i cannot
  10. j can
  11. k [a insertObject: [NSNull null] atIndex: 0];
  12. l NSString *myString = [a objectAtIndex: 2];