SAS Base, A00-211 Crambible 

SAS 베이스 자격증 

QUESTION NO: 74


The following SAS program is submitted:

data WORK.TEST;
set WORK.MEASLES(keep=Janpt Febpt Marpt); 

array Diff{3} Difcount1-Difcount3;
array Patients{3} Janpt Febpt Marpt;
run;


What new variables are created?

A. Difcount1, Difcount2 and Difcount3 

B. Diff1, Diff2 and Diff3
C. Janpt, Febpt, and Marpt
D. Patients1, Patients2 and Patients3


work 라이브러리에 test라는 데이타를 만들려고 합니다. set으로 measles라는 데이타를 불러올때 keep을 이용해서 Janpt, Febpt, Marpt 변수를 유지하고요. 


array를 이용해서 Diff라는 배열(array)을 만드는데 이때, {3} 즉, 배열의 길이는 3이고요. 각 배열마다 변수가는데 그 변수 이름이 Difcount1, Difcount2, Difcount3 라는거죠. 


또 array를 이용해서 Patients라는 배열의 길이 3의 배열을 만드느데 이때 Janpt Febpt Marpt 변수가 각 배열로 들어가게 됩니다. 


따라서 새롭게 만들어진 변수는 A가 되겠습니다. 


Answer: A 



반응형

+ Recent posts