SAS认证220道_练习题及详细答案(10-9)

更新时间:2023-05-21 11:56:38 阅读: 评论:0

SAS Certificate Ba Practice Questions and Detailed Answers Chapter 1: Basic Concepts
Chapter 2: Referencing Files and Setting Options
Chapter 3: Editing and Debugging SAS Programs
Chapter 4: Creating List Reports
Chapter 5: Creating SAS Data Sets from Raw Data
Chapter 6: Understanding DATA Step Processing
Chapter 7: Creating and Applying Ur-Defined Formats
Chapter 8: Creating Enhanced List and Summary Reports
ndai
Chapter 9: Producing Descriptive Statistics
英语口语mp3免费下载Chapter 10: Producing HTML Output
Chapter 11: Creating and Managing Variables
sheva
Chapter 12: Reading SAS Data Sets
Chapter 13: Combining SAS Data Sets
Chapter 14: Transforming Data with SAS Functionswaste是什么意思
Chapter 15: Generating Data with DO Loops
Chapter 16: Processing Variables with Arrays
Chapter 17: Reading Raw Data in Fixed Fields
Chapter 18: Reading Free-Format Data
Chapter 19: Reading Date and Time Values
Chapter 20: Creating a Single Obrvation from Multiple Records
Chapter 21: Creating Multiple Obrvations from a Single Record
Chapter 22: Reading Hierarchical Files
Chapter 1: Basic Concepts Answer Key
1.How many obrvations and variables does the data t below contain?
a.  3 obrvations, 4 variables在线英汉互译
b.  3 obrvations, 3 variables
c.  4 obrvations, 3 variables
d.can't tell becau some values are missing
drumkitCorrect answer:c
Rows in the data t are called obrvations, and columns are called variables. Missing values don't affect the structure of the data t.
2.How many program steps are executed when the program below is procesd?
data ur.tables;
infile jobs;
input date name $ job $;
run;
proc sort data=ur.tables;
by name;
run;
proc print data=ur.tables;
run;
a.three
b.four
c.five
d.six
Correct answer:a
When it encounters a DATA, PROC, or RUN statement, SAS stops reading statements and
executes the previous step in the program. The program above contains one DATA step and two PROC steps, for a total of three program steps.
3.What type of variable is the variable AcctNum in the data t below?
a.numeric
b.character
c.can be either character or numeric
d.can't tell from the data shown
Correct answer:b
It must be a character variable, becau the values contain letters and underscores, which are not valid characters for numeric values.
4.What type of variable is the variable Wear in the data t below?
a.numeric
b.character
c.can be either character or numeric
d.can't tell from the data shown
bumpy
Correct answer:a
It must be a numeric variable, becau the missing value is indicated by a period rather than by a blank.
5.Which of the following variable names is valid?
a.4BirthDate
b.$Cost
c._Items_
d.Tax-Rate
Correct answer:c
Variable names follow the same rules as SAS data t names. They can be 1 to 32 characters long, must begin with a letter (A–Z, either upperca or lowerca) or an underscore, and can continue wit
h any combination of numbers, letters, or underscores.
6.Which of the following files is a permanent SAS file?
a.Sashelp.PrdSale
b.Sasur.MySales
c.Profits.Quarter1
d.all of the above
Correct answer:d
To store a file permanently in a SAS data library, you assign it a libref other than the default Work. For example, by assigning the libref Profits to a SAS data library, you specify that files within the library are to be stored until you delete them. Therefore, SAS files in the Sashelp and Sasur libraries are permanent files.
7.In a DATA step, how can you reference a temporary SAS data t named Forecast?
a.Forecast
b.Work.Forecast
c.Sales.Forecast (after assigning the libref Sales)句子翻译在线
Correct answer:d
To reference a temporary SAS file in a DATA step or PROC step, you can specify the one-
level name of the file (for example, Forecast) or the two-level name using the libref Work (for example, Work.Forecast).
8.What is the default length for the numeric variable Balance?
a.  5党员代表发言
b.  6
c.7
d.8
Correct answer:d
The numeric variable Balance has a default length of 8. Numeric values (no matter how many digits they contain) are stored in 8 bytes of storage unless you specify a different length.
9.How many statements does the following SAS program contain?
proc print data=new.prodsale
label double;
var state day price1 price2; where state='NC';
label state='Name of State';
run;
a.three
b.four
c.five
d.six多米尼克 斯特劳斯 卡恩
Correct answer:c
The five statements are
•PROC PRINT statement (two lines long)

本文发布于:2023-05-21 11:56:38,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/719220.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:发言   免费   英汉
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图