SAS BASE

Crambible / sas 문제 48

표독's 2016. 1. 29. 17:01

*참고 : 30

1. 문제풀이

대소문자를 구별해주는 문제이다.


destination = 'cph'; 

 /*destination에 'cph'를 할당해주었다 */


select(destination);

when('CPH') city = 'Copenhagen';

otherwise city = 'Other';

/* destination의 값이 'CPH'일 경우 'Copenhagen'

   그렇지 않은 경우 'Other' */


초기에 destination변수에 'cph'가 들어있으므로 ('CPH')

답은 A. 'Other'이 나온다.



'SAS BASE' 카테고리의 다른 글

Crambible / sas 문제 50  (0) 2016.01.29
Crambible / sas 문제 49  (0) 2016.01.29
Crambible / sas 문제 47  (0) 2016.01.29
Crambible / sas 문제 46  (0) 2016.01.29
Crambible / sas 문제 45  (2) 2016.01.29