Practice Free A00-282 Exam Online Questions
Which function would be used to determine the number of elements in an existing array?
- A . dim ()
- B . n ()
- C . sum ()
- D . count ()
Which code segment would you use to derive the numeric variable AVAL from AVALC by stripping off non-numeric characters?
- A . aval = put(compress(avalc, ‘<>=’), best12.);
- B . aval = input(compress(avalc, ‘<>=’), best12.);
- C . aval = input(substr(avalc, 2,2), best12.);
- D . aval = put(substr(avalc, 2,2), best12.);
A dataset contains systolic blood pressure values stored in the variable SYSBP.
Which program displays the median systolic blood pressure over all participants?
- A . proc univariate data=vitals;
var sysbp;
run; - B . proc means data=vitals;
var sysbp;
run; - C . proc summary data=vitals print;
var sysbp;
run; - D . proc freq data=vitals;
tables sysbp;
run;
You are working with the VS data set that contains the variable Pulse.
Which PROC SGPLOT step will produce the graph shown below?
- A . proc sgplot data = Work.VS noautolegend;
density pulse;
vbarbasic pulse;
run; - B . proc sgplot data = Work.VS noautolegend;
density pulse;
histogram pulse;
run; - C . proc sgplot data = Work.VS noautolegend;
histogram pulse;
density pulse;
run; - D . proc sgplot data = Work.VS noautolegend;
vbarbasic pulse;
density pulse;
run;
The following SAS program is submitted:
What is the value of the variable day when the data step completes?
- A . 1
- B . 6
- C . 7
- D . 8
The data set CM has eight variables including CMTRT and is sorted by STUDYID USUBJID CMSEQ.
DATA_BB is created by selecting records from CM where the character string "BLOCKER" is included in CMTRT.
Which program was used to produce WORK.DATA_BB?
- A . proc sort data=cm out=data_bb (keep=usubjid cmstdtc cmtrt);
by usubjid CMSTDTC;
where cmtrt in(‘BLOCKER’);
run; - B . proc sort data=CM (keep=usubjid cmstdtc cmtrt) out=data_bb;
by usubjid CMSTDTC;
where cmtrt contains ‘BLOCKER’;
run; - C . data data_bb;
set cm (where=(find(cmtrt,’BLOCKER’,’i’)>0));
by usubjid CMSTDTC;
run; - D . data data_bb;
set cm (keep=usubjid cmstdtc cmtrt);
by usubjid CMSTDTC;
where cmtrt in(‘BLOCKER’);
run;
The purpose of the ADaM model is to provide a framework that:
- A . enables the tabulation of the raw source data
- B . enables the creation of study patient profiles
- C . enables the statistical analysis of the data
- D . can be used to generate the CDISC ODM
The first six (6) records from the LABS data set are shown below:
The following SAS program is written to reshape this data set and place it in a new data set named LBTR.
proc transpose data=labs out=lbtr(rename = (col1 = value));
by subjid sampldat;
var Calcium Glucose Hemoglobin;
run;
Which of the following DATA steps produces a data set that is equivalent to the LBTR data set created by the PROC TRANSPOSE step above?
- A . data lbtr2(drop = i calcium glucose hemoglobin);
set labs;
array orig[3] calcium glucose hemoglobin;
array testcds[3] $ 10 _temporary_ ("CALCIUM" "GLUCOSE" "HEMOGLOBIN");
do i = 1 to 3;
value = orig[i];
_name_ = testcds[i];
output;
end;
run; - B . data lbtr2(drop = i calcium glucose hemoglobin);
set labs;
array orig[3] calcium glucose hemoglobin;
array testcds[3] $ 10 _temporary_ ("CALCIUM" "GLUCOSE" "HEMOGLOBIN");
do i = 1 to 3;
value = orig[i];
_name_ = testcds[i];
end;
output;
run; - C . data lbtr2(drop = i calcium glucose hemoglobin);
set labs;
array orig[3] calcium glucose hemoglobin;
array testcds[3] $ 10 ("CALCIUM" "GLUCOSE" "HEMOGLOBIN");
do i = 1 to 3;
value = orig[i];
_name_ = testcds[i];
end;
output;
run; - D . data lbtr2(drop = i calcium glucose hemoglobin);
set labs;
array orig[3] calcium glucose hemoglobin;
array testcds[3] $ 10 ("CALCIUM" "GLUCOSE" "HEMOGLOBIN");
do i = 1 to 3;
value = orig[i];
_name_ = testcds[i];
output;
end;
run;
The PROC SGPLOT step below needs to be modified to format the values on the horizontal axis.
proc sgplot data = work.adlb;
histogram AVAL;
<insert code here>
run;
Which statement CANNOT be used to format the values due to a syntax error?
- A . xaxis valuesformat = comma8.2;
- B . xaxis valuesformat = 8.2;
- C . format AVAL comma8.2;
- D . format AVAL 8.2;
The print below shows the first four observations from the TEST2 dataset.
Variable names are given in the first row.
The statistical analysis plan (SAP) requests that a two sample t-test be performed to compare the mean of variable FINALBP for levels of the variable TRT.
You review the following code from a colleague:
proc ttest data=test2;
by trt;
var finalbp;
run;
This code does not produce the analysis requested by the SAP.
What is wrong with this code?
- A . Variable FINALBP should be specified on a TWOSAMP statement instead of a VAR statement.
- B . Variable TRT should be specified on a CLASS statement instead of a BY statement.
- C . Variable FINALBP should be specified on a TEST statement instead of a VAR statement.
- D . Variable TRT should be specified on a WEIGHT statement instead of a BY statement.