單項選擇題變量Address2包含諸如Piscataway,NJ之類的值。如何將兩個字母的州縮寫分配給名為State的新變量?()

A.State=scan(address2,2);
B.State=scan(address2,13,2);
C.State=substr(address2,2);
D.State=substr(address2,13,2);


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題下列哪項時對Var1,Var2,Var3,Var4求均值?()

A.mean(var1,var4)
B.mean(var1-var4)
C.mean(of var1,var4)
D.mean(of var1-var4)

2.單項選擇題

哪個SAS程序讀取ID的值并保存每個Quantity值的記錄,以便為每個記錄創(chuàng)建三個觀察值?()

A.data work.sales;infile unitsold;input ID $;do week=1to 3;input Quantity :comma.;output;end;run;
B.data work.sales;infile unitsold;input ID $@@;do week=1to 3;input Quantity :comma.;output;end;run;
C.data work.sales;infile unitsold;input ID $@;do week=1to 3;input Quantity :comma.;output;end;run;
D.data work.sales;infile unitsold;input ID $@;do week=1to 3;input Quantity :comma.@;output;end;run;

3.單項選擇題哪個指針控件用于按順序讀取多個記錄?()

A.@n
B.+n
C./
D.all of the above

5.單項選擇題

下面哪一段代碼可以生成下述結果?()

A.data _null_;set work.scores;file ’c:\data\teamdat’dlm=’,’;put name highscore team;run;
B.data _null_;set work.scores;file ’c:\data\teamdat’dlm=’’;put name highscore team;run;
C.data _null_;set work.scores;file ’c:\data\teamdat’dsd;put name highscore team;run;
D.data _null_;set work.scores;file ’c:\data\teamdat’;put name highscore team;run;