문제풀이/기타
[SAS BASE] Q56. le
나루다루
2018. 5. 23. 04:51
728x90
QUESTION NO: 56
The following SAS program is submitted:
data test;
set sasuser.employees;
if 2 le years_service le 10 then
amount = 1000;
else amount = 0;
amount_per_year = years_service / amount;
run;
What is the value of the variable AMOUNT_PER_YEAR if an employee has been with the
company for one year?
A. 0
B. 0.001
C. 1
D. . (missing numeric value)
Answer: D
- le : less than( <= )
- ge : greater than( >=)
- 2 <= years_service <= 10이면 amount=1000, 아니면 amount=0이다. 문제에서 years_service=1이므로 amount=0이 된다. amount_per_year에서 분모(amount)에 0이 들어가므로 missing value가 된다.
728x90
반응형