没有合适的资源?快使用搜索试试~ 我知道了~
SAS认证220道 练习题及详细答案
5星 · 超过95%的资源 需积分: 26 27 下载量 44 浏览量
2012-03-02
15:58:13
上传
评论 2
收藏 1.22MB PDF 举报
温馨提示
试读
131页
SAS Certificate Base Practice Questions and Detailed Answers
资源推荐
资源详情
资源评论
SAS Certificate Base 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 User-Defined Formats
Chapter 8: Creating Enhanced List and Summary Reports
Chapter 9: Producing Descriptive Statistics
Chapter 10: Producing HTML Output
Chapter 11: Creating and Managing Variables
Chapter 12: Reading SAS Data Sets
Chapter 13: Combining SAS Data Sets
Chapter 14: Transforming Data with SAS Functions
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 Observation from Multiple Records
Chapter 21: Creating Multiple Observations from a Single Record
Chapter 22: Reading Hierarchical Files
1
Chapter 1: Basic Concepts Answer Key
1.
How many observations and variables does the data set below contain?
a. 3 observations, 4 variables
b. 3 observations, 3 variables
c. 4 observations, 3 variables
d. can't tell because some values are missing
Correct
answer:
c
Rows in the data set are called observations, and columns are called variables. Missing values
don't affect the structure of the data set.
2.
How many program steps are executed when the program below is processed?
data user.tables;
infile jobs;
input date name $ job $;
run;
proc sort data=user.tables;
by name;
run;
proc print data=user.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
2
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 set 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, because 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 set below?
a. numeric
b. character
c. can be either character or numeric
d. can't tell from the data shown
Correct
answer:
a
It must be a numeric variable, because the missing value is indicated by a period rather than
by a blank.
3
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 set names. They can be 1 to 32 characters
long, must begin with a letter (A–Z, either uppercase or lowercase) or an underscore, and can
continue with any combination of numbers, letters, or underscores.
6.
Which of the following files is a permanent SAS file?
a. Sashelp.PrdSale
b. Sasuser.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 Sasuser libraries are permanent files.
7.
In a DATA step, how can you reference a temporary SAS data set named Forecast?
a. Forecast
b. Work.Forecast
c. Sales.Forecast (after assigning the libref Sales)
d. only a and b above
Correct
answer:
d
To reference a temporary SAS file in a DATA step or PROC step, you can specify the one-
4
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)
剩余130页未读,继续阅读
资源评论
- zqqz20142015-12-18每一题都有解释,很实用,感谢分享!
- sefuhnjsdhujn2013-01-18很好,很有用
- derean2013-04-10挺详细的,也很管用 不错 推荐一下
gerwang
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 演讲稿.txt
- 基于Python的爬虫案例-软科中国大学TOP200
- 碳排放权交易明细数据(2024年5月更新).xlsx
- 特殊文件属性命令chattr和lsattr
- HTML、CSS 和 JavaScript动态、交互式的网页 .txt
- b0cd8f9b23d4e5e381b6a8fd8ee0e907.JPG
- ff45d61c5900e45634cf4cac6cff61a1.JPG
- springboot.springboot.springboot.springboot.txt
- linux-进程与服务管理
- 毕业设计基于Django+MySQL+Redis实现简单的天气预报系统python源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功