Objective-C Test

Exam Type: MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 40
Time Limit: 15 Minutes
Last Update April, 2025

Text Detail

Objective C tutorial linkedin

What is the value of s?

NSMutableString *s = [NSMutableString stringWithString:@"123"];

 [s appendString:@"456"];

  • 123
  • 123456
  • 456
  • This code contains an error.

linkedin Objective C skill assessment

What's the value of i after these statements?

NSString *str = nil;

NSInteger i = str.integerValue;

  • This code crashes.
  • nil
  • -1
  • 0

linkedin Objective C test answers

What value is in str after this line is executed?

NSString str = "test" + " " + "more";

  • test
  • nil
  • This code contains an error.
  • test more

Objective C linkedin Quiz

What does this code print?

NSPredicate *p2 = [NSPredicate predicateWithBlock:^BOOL(NSString* evaluatedObject,

 NSDictionary * _Nullable bindings) {

 return evaluatedObject.intValue % 2 == 0;

}];

 

NSArray *vals = @[@"1",@"2",@"3"];

NSArray *n2 = [vals filteredArrayUsingPredicate:p2];

NSLog(@"%@", n2.firstObject);

 

  • Nothing, since this code contains an error.
  • 1,2
  • 2
  • 1,2,3

linkedin Objective C skill assessment answers

Property defaults include _____.?

  • nonatomic/weak
  • atomic/weak
  • nonatomic/strong
  • atomic/strong
© 2025 Skill Test Answer. All Rights Reserved