NAME

Question types


Start with


Question limit

of 13 available terms

Print test

13 Matching questions

  1. Given: bool status = [TCAStringManip isUpperCaseLetter:t]; Write a statement that logs 'YES' if status is true and 'NO' if status is false using the ternary operator
  2. In an NSLog statement, the token for a string is...
  3. In an NSLog statement, the token for a float is....
  4. Given: NSString *puppet = @"Pinocchio"; Write a line of code that stores the number of letters in 'puppet' in a variable called 'len'. Use message notation.
  5. Correct the error: NSString temp = [[NSString alloc] init];
  6. Create a string called 'puppet' that has the value 'Pinocchio' without using message syntax (use the shorthand technique).
  7. Given: NSString *school = @"TCA"; NSLog(@"I attend %@", school); The fragment '@"I attend %@"' is called a _____ ____ and the fragment '%@' is called a _____ or _____ _______
  8. In an NSLog statement, the token for an unsigned long is....
  9. In an NSLog statement, the token for a char is....
  10. Given: NSString fname = @"John"; NSString lname = @"Doe"; Write a command(s) that creates a new NSString called 'fullName' that concatenates fName and lName.
  11. In an NSLog statement, the token for an int is...
  12. Given: unsigned long len = [@"Hello World" length]; What is an acceptable replacement datatype for 'unsigned long'
  13. Create a string called 'puppet' that has the value 'Pinocchio' using message syntax
  1. a NSString *puppet = @"Pinocchio";
  2. b %@
  3. c %f
  4. d NSString *temp = [[NSString alloc] init];
  5. e NSString *fullName = [fname stringByAppendingString: @" "]; fullName = [fullName stringByAppendingString: lname];
  6. f unsigned long len = [puppet length]; (using 'int' for the data type here creates a warning)
  7. g %c
  8. h NSUInteger
  9. i NSLog(@"%@", status? @"YES": @"NO");
  10. j %lu
  11. k format string...token...format specification
  12. l NSString *puppet = [[NSString alloc] initWithString:@"Pinocchio"];
  13. m %d