You are on page 1of 15

SAS A00-215

Certification Questions
& Answer
SAS® Certified Associate: Programming Fundamentals Using SAS 9.4

http://hadoopexam.com A00-215 (SAS Base)


Question-1: Which of the following statement is correct with regards to SAS statements?

A. SAS Statement should start at the first column of the line

B. SAS Statement has to finish in the same line

C. You can have more than one SAS statement is the same line

D. To separate the words in a SAS statement you can use the Special character

Answer: C, D

Explanation: Using the SAS statement you can do some operations in the SAS env. Like declaring a
variable etc. SAS statement can begin anywhere in the line. It is not necessary that they must be started
from the first column of the line and even a single line can have multiple SAS statements. And to
separate the words you can use either Special character or the blanks, most of the time you would be
using blank only.

Question-2: Which of the following are the correct with regards to SAS statement?

A. There are only one type of SAS statement which is used in PROC

B. If we wanted to use a variable anywhere in the SAS program then we should create a local SAS
statement

C. A statement should always end with “.” Period.

D. You can create two types of SAS statement one is in DATA and PROC steps and another one is global

Answer: D

Explanation: When you create a SAS Statement then you should keep in mind that there are two types
of SAS statement can be created as below.

1. The one which is part of DATA and PROD steps

2. And any SAS statement which you want to use anywhere in your SAS program then they should be
having global scope.

A SAS statement always ends with the semicolon.

Question-3: Which of the following is/are global statements and what else is true for them?

A. TITLE

B. LIBNAME

C. OPTIONS

D. Does not require run statement

1
E. Does require run statement

Answer: A,B,C,D

Explanation: As we have discussed Global statement can be used anywhere in the SAS program and
stage effective until they are changed/canceled or you end the sessions. All the SAS statements which
are given in the Question are Global statements.

Question-4: Which of the following you can do with the SAS Data step?

A. You can create new SAS Data set

B. You can do mathematical operations with the DATA

C. You can validate your data e.g. checking for errors in data

D. Using existing data you can create a new dataset

Answer: A,B,C,D

Explanation: Usually you use the DATA step to create and modifies the data. Even you can provide your
own Raw data in the Data step or you can use the data from the SAS data set. Your Data step can
generate new Data set or a report can be created. All the given options are correct which you can
accomplish in the SAS data step. Like creating new data set, error checking in the data, do mathematical
operations with the numerical data and creating new data set from the existing one for that you would
be applying various operations like merging of the data.

Question-5: Please map the following

A. SAS Data step

B. SAS Proc step

C. Global statement

D. Program

1. Computing values

2. Creating a report for data listing

3. As soon as SAS session ended, they are canceled

4. This is a sequence of steps

Answer: A-1, B-2, C-3, D-4

2
Explanation: As we have seen using the SAS data step we can compute the values and in the proc
statement we can analyze the data. And a SAS program is a sequence of steps which can be combination
of DATA and PROC step.

Thanks for considering SAS A00-215 Certification Preparation Material from http://hadoopexam.com .
You can get access to all the 150+ questions and answer for your real exam preparation from below link.
Where you would find the same quality of questions and correct answers with the detailed explanation.
Below are most popular SAS Certification preparation material and we are continuously updating and
adding more questions.

You can check all the available products across the website and have Annual Pro subscription which
includes
- Trainings
- Certification Preparation
- Interview Preparation material
- Interview Preparation Audio and Video Books
- eBooks on various subjects
- Project Implementations
- Anything newly added during your active subscription also you can get.

Question-6: What all you can accomplish using the PROC step?

A. Data Analysis

3
B. Generating a Data summary report

C. Generate graphs and plots

D. You can list your data

Answer: A,B,C,D

Explanation: The name of the PROC step is procedure step and using that you can do many things,
which exactly depend what PROC you are using. The thing which you can do in general with the prod
step are

- Analyzing the data in the Data set


- Managing the SAS files

Once you are done with the basic operations then SAS PROC step can generate the report or new data
set from the existing one.

Question-7: You have been given below code snippet, which of the following statement is correct?
Title1 ‘HadoopExam Learning Resources”

data he_data;

set hesas.he_new_learner

where courseName==’SAS’

A. Title1 statement may not require run statement

B. A new dataset named he_new_learner would be created

C. A new dataset named he_data would be created

D. Dataset he_new_learner would have only those learner which has subscribed for SAS course.

Answer: A,C

Explanation: As you can see Title1 is outside of the Data step, hence it is a global statement. And this
does not require the run statement. Here, we are creating new data set named he_data from the
existing dataset hesas.he_new_learner, and also he_data would have only those data which has
courseName as ‘SAS’

Question-8: Which of the following statement are correct with regards to the SAS program?

A. The first step which is done on the SAS program is compilation

B. The first step which is done on the SAS program is validation of SAS program

C. It is mandatory to provide “run” statement to end the step

4
D. It is not mandatory to provide “run” statement to end the step

Answer: B, D

Explanation: SAS program is mix of Global statement, Data and Proc step. As soon as you submit your
program SAS needs to first validate the syntax in the program, if syntax is not valid then it will generate
compilation error. Once program is compiled it is ready to run. However, to end any Data or Proc step it
is not require to have run statement. Because as soon as new SAS step is found then SAS would consider
the previous SAS step ends and execute the same.

Question-9: Which of the following statements are correct for the SAS program log messages?

A. Log can only be generated if there is any result from the SAS step execution.

B. You would get all the log messages together for the entire SAS program.

C. You would be getting separate set of log messages for each step in the program

D. Logs are generated during the program validation

E. Logs are generated during the program compilation

F. Logs are generated when the program is executed

Answer: C, F

Explanation: Logs are the information from your SAS program execution and they can only be generated
once the program execution or run phase. Logs would not be generated during the compilation and
analysis phase. And also, for each step separate logs are generated, but shown on the same screen. It is
sometime possible that your SAS program does not generate the output but log messages can be
generated.

Question-10: Please map the following

A. Sashelp

B. Sasuser

C. Work

D. Webwork

1. This define how SAS works at your site

2. Stores users’ personal settings

3. Can only saved for a specific session

4. Used in the interactive mode

5
Answer: A-1,B-2,C-3, D-4

Explanation: All the option given in the questions are SAS library, which is collection of the data. And
each library has specific purpose and the also define how long data would be saved and can be updated
or not.

Sashelp: If you want to have sample data then use this Sashelp library and this also stores the
information for controlling the SAS working locally for your site. This is a permanent library and read
only mode.

Sasuser : As name suggest this is user specific, it stores the SAS files in the Profile catalog, most of the
things which are stored in this are your personal settings, and if you want to save your personal file then
save in this folder.

Work: Whenever you want to create some temporary data then use the Work directory and once
session is closed, data saved in the Work library would also be dropped and would not be available in
next session.

Webwork: This is an output library by default in interactive mode.

Thanks for considering SAS A00-215 Certification Preparation Material from http://hadoopexam.com .
You can get access to all the 150+ questions and answer for your real exam preparation from below link.
Where you would find the same quality of questions and correct answers with the detailed explanation.
Below are most popular SAS Certification preparation material and we are continuously updating and
adding more questions.

You can check all the available products across the website and have Annual Pro subscription which
includes
- Trainings
- Certification Preparation
- Interview Preparation material
- Interview Preparation Audio and Video Books
- eBooks on various subjects
- Project Implementations

6
- Anything newly added during your active subscription also you can get.

Question-11: Which of the following statements are correct with regards to the SAS library?

A. SAS library may contain catalog file type

B. You can have a different SAS engine to read the data in different format

C. When you delete the library, it deletes the content from the operating system as well.

D. Library name and path to the contents are mandatory to create a new library

Answer: A, B, D

Explanation: SAS library is the data contents which are stored on some folder or directory in your
operating system. SAS library is a good way for grouping similar kind of data or having the same
permissions to be stored in single library. It is your choice how you want to organize the data.

Catalog file: In a SAS library there is one special kind of file which is catalog and which is used to group
other members in the library and much like you can see it as a subfolder.

One library is equivalent to one folder or directory on your operating system. However, some files you
may not be able to read because of their special format like new file formats are being created
SequenceFile, Avro file and Parquet file etc. Which SAS can not read using their default engine and you
need to change the engine to read those file, which you can do while defining the new library.

When you delete a library then only reference to the folder would be deleted and the contents of the
library would not be deleted.

Question-12: You have been given below SAS code snippet, please select the statement which is
correctly applies?
data he_data
set hesas.learners
run;
A. You are creating new permanent SAS library named hesas.

7
B. You are creating new SAS library named learners

C. You are creating new SAS data in the Work directory

D. You are creating new permanent library named he_data

Answer: C

Explanation: Using the data step we are creating a new Data set in the given example new Data set
name is he_data and this created from the existing data (learners) in the hesas (permanent) library. In
the data step if you are referring data set without any library then they would always be created in the
Work directory and the data created in the Work directory remain temporary and as soon as your SAS
session is completed these data would also vanishes or deleted. Referring data in the Work library can
be anyway from below

data he_data or data Work.he_daya

Question-13: Which of the following is/are valid name of the SAS library?

A. __he_data

B. 0__he_data

C. he_data_10

D. hadoopexam.__he_data

E. he.__he_data

F. h

G. h._

Answer: A,C,E,F,G

Explanation: There are some rules defined by the SAS to have the valid names for SAS data sets,
variables and libraries as below.

- Beginning : First character can only be “_” underscore, or any letter between A-z in uppercase or
lowercase.
- Middle to end : From 2nd character onwards you can have any number + underscore + any letter
between A to z in upper case or lowercase.
- Length : Length of the name can not be more than 32 character and should be at least 1
character.
- Library name length: Library name cannot be more than 8 character and it should be again
between 1 to 8 character long.

8
Question-14: If you want to have support for the non-ascii character in the variable name then which
of the below option you would choose?

A. VALIDMEMNAME=ANY

B. VALIDMEMNAME=V7

C. VALIDMEMNAME=SAS

D. VALIDMEMNAME=EXTEND

Answer: D

Explanation: If you want to have the support for international character which are not-ASCII character
then use the VALIDMEMNAME=EXTEND system option. Even if your third party database has support for
different rule for creating variable name then SAS then also this option is helpful.

Question-15: which of the following is/are valid SAS variable name?

A. _N_

B. _ERROR_

C. _NUMERIC_

D. _CHARACTER

E. _ALL_

F. None of the above

Answer: F

Explanation: SAS has some automatic variable name which you should not use while creating your own
variable name like all the variable name given in the option are automatic variable name and should be
avoided.

Question-16: Which all are the valid parts of the SAS data set?

A. Descriptor

B. Data

C. Index

D. Extended attributes

Answer: A,B,C,D

9
Explanation: All the options given are correct. Any of this can be part of the Data set. Usually you would
have Descriptor and Data always available.

Question-17: Please map the following

A. Descriptor

B. Data

C. Index

D. Extended attributes

1. It holds the number of variables

2. Collection of observations

3. Helps, in accessing data from file in faster or efficient way

4. These are the user defined attributes

Answer: A-1, B-2, C-3, D-4

Explanation: Descriptor : This has the basic required and optional information about the data like as
below.

- The name by which you can refer the data


- Timestamp when the data was created including
- How many observations and variable this data can have.
- SAS Engine used for creating this data
- Properties of each variable also stored in this section like type of the variable either numeric or
character etc.
- Length of the variable is very critical.
- Numeric data can have exponential values also with the scientific notations.

Index: Index has the same file name as data file name but it is a separate file. Index helps in accessing
data much faster and helps in improving the performance of your SAS program, specially when it has
some where condition or group by statements in the program.

Extended attributes: If you want to provide some additional information for the data then you can use
the extended attributes.

Question-18: You have been given below code snippet


data work.he_data
set hesas.learner; run;

10
proc sort work.he_data;
by course_name; run;
proc print data = work.he_data;
run;
How many total steps are there?

A. 1

B. 2

C. 3

D. 4

Answer: A

Explanation: In this program you can see that there is 1 data step and two proc step. Hence, total 3
steps.

Question-19: You have been given below data

In this data what is the type of the ID?

A. Numeric

B. Character

C. It can be either numeric or character

D. Invalid data

Answer: B

Explanation: As in the data value we can see it has “_” included then it can not be a numeric value.
Hence, data is having type of character.

Question-20: You have been given below data

11
What is the type of the fee variable?

A. Numeric

B. Character

C. It can be either numeric or character

D. Invalid data

Answer: A

Explanation: In the given example fee column has a “.” Period value. If any numeric value is missing it is
represented as “.” Period. If any character value is missing then that would be represented as blank.
Hence, we can say that column fee is type of numeric.

Thanks for considering SAS A00-215 Certification Preparation Material from http://hadoopexam.com .
You can get access to all the 150+ questions and answer for your real exam preparation from below link.
Where you would find the same quality of questions and correct answers with the detailed explanation.
Below are most popular SAS Certification preparation material and we are continuously updating and
adding more questions.

You can check all the available products across the website and have Annual Pro subscription which
includes

- Trainings

12
- Certification Preparation
- Interview Preparation material
- Interview Preparation Audio and Video Books
- eBooks on various subjects
- Project Implementations
- Anything newly added during your active subscription also you can get.

Syllabus for A00-215 Certification

Fundamental SAS Concepts

- Recall general rules of DATA and PROC steps


- Recognize general rules of SAS statements including global statements
- Interpret the SAS log
- Distinguish between syntax and logic errors

Explore SAS Data Sets

- Recall naming conventions used for SAS data sets and variables
- Recognize variable types (character and numeric)
- Explain how to create and manipulate SAS date values
- Recognize how SAS stores missing data
- Use the LIBNAME statement to read SAS data sets
- Use PROC CONTENTS to view the descriptor portion of a data set
- Recall how to use Data Set options: DROP=, KEEP=, RENAME=, OBS=

Using the DATA Step to Access SAS Data Sets

- Use the DATA statement to create one or multiple data sets


- Use the SET statement to read a data set
- Explain how to combine data sets
- Explain the compilation and execution process of the DATA step
- Subset observations and variables

Using the DATA Step to Manipulate Data

- Create or update variables

13
- Recognize SAS Functions
- Perform conditional processing
- Control the output of observations
- Create an accumulating variable
- Explain the function of iterative DO loops
- Assign permanent attributes

Generate Reports Using PROC Steps

- Use PROC PRINT to generate a detail report


- Use PROC MEANS to generate a summary report
- Use PROC FREQ to generate a frequency report
- Identify methods to enhance reports

Use Utility Procedures

- Use PROC SORT to sort a report based on values of a variable


- Use PROC FORMAT to define custom formats

Import and Export non-SAS files

- Use a procedure to transfer a CSV file


- Use the LIBNAME statement to import/export an Excel file with XLSX engine
- Use ODS to direct reports to external files

14

You might also like