나루다루

[SAS BASE] Q56. le 본문

Study/SAS BASE

[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
반응형

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

[SAS BASE] Q58. first & last & if  (0) 2018.05.28
[SAS BASE] Q57. ?  (0) 2018.05.23
[SAS BASE] Q55. weekdate.  (0) 2018.05.23
[SAS BASE] Q54. tables  (0) 2018.05.23
[SAS BASE] Q53. array & _temporary_  (0) 2018.05.23
Comments