База ответов ИНТУИТ

Программирование на Objective-C

<<- Назад к вопросам

Что выведется на экран?
NSMutableDictionary *dict = [ NSMutableDictionary dictionaryWithObjectsAndKeys:@"a", @"b",@"c", @"d",nil];NSLog(@"%@", [ dict objectForKey:@"b" ]);

(Ответ необходимо ввести в поле ввода.)

Варианты ответа
Похожие вопросы
Что выведется на экран?
NSMutableDictionary *dict = [ NSMutableDictionary dictionaryWithObjectsAndKeys:@"a", @"b",@"c", @"d",nil];NSLog(@"%@", [ dict objectForKey:@"d" ]);
Что выведется на экран?
NSMutableDictionary *dict = [ NSMutableDictionary dictionaryWithObjectsAndKeys:@"a", @"b",@"c", @"d",nil];NSLog(@"%@", [ dict objectForKey:@"b" ]);
Какое значение выведется на экран после выполнения следующего кода
int myFunction(int x);int a = 6;int main (int argc, const char * argv[]){  @autoreleasepool {    NSLog(@"%i", myFunction(4));  }    return 0;}int myFunction(int x) {  int a = 3;  return a+x;}
Какое значение выведется на экран после выполнения следующего кода?
void myFunction(int x);int a = 6;int main (int argc, const char * argv[]){  @autoreleasepool {    a--;    myFunction(7);    NSLog(@"%i", a);  }    return 0;}void myFunction(int x) {  a += x;}
Какое значение выведется на экран после выполнения следующего кода
void myFunction(int x);int a = 4;int main (int argc, const char * argv[]){  @autoreleasepool {    int a = 6;    myFunction(a);    NSLog(@"%i", a);  }    return 0;}void myFunction(int x) {  int a = 2;  a++;}
Что делает данный код?
if ( [ fm fileExistsAtPath:startPath ]) {  NSDictionary * fAtt = [ fm attributesOfItemAtPath:startPath error:nil ];  for (NSString *key in fAtt) {    NSLog(@"Attribute %@ is %@", key, [ fAtt objectForKey:key]);    }}
Что делает данный код?
if ( [ fm fileExistsAtPath:startPath ]) {  NSDictionary * fAtt = [ fm attributesOfItemAtPath:startPath error:nil ];  for (NSString *key in fAtt) {    NSLog(@"Attribute %@ is %@", key, [ fAtt objectForKey:key]);    }      [ fm moveItemAtPath:startPath toPath:finalPath error:nil ];}
Какое число мы увидим при выполнении?
int array[4] = {4,0,-1,3};NSLog(@"%i", array[1]);
Какое число мы увидим при выполнении?
int array[5] = {9,8,0,6,5};NSLog(@"%i", array[3]);
Какое число мы увидим при выполнении?
int array[5] = {9,8,0,6,5};NSLog(@"%i", array[4]);