math2871_mock_exam_s206

# math2871_mock_exam_s206 - MATH2871 DATA MANAGEMENT FOR...

This preview shows pages 1–3. Sign up to view the full content.

MATH2871 DATA MANAGEMENT FOR STATISTICAL ANALYSIS MOCK EXAM 2006 NOTE: The final examination will have 15 questions in part A and 7 questions in part B. You will be allowed to take one A4 sheet of hand-written notes into the final examination. PART A The 10 questions in Section A are multiple choice. For each question, write the question number in your answer book and the letter (A, B, C, D or E) that corresponds to the correct answer. 1. The following program is submitted: data numrecords; infile datalines dlm=’,’; input agent1 \$ agent2 \$ agent3 \$; datalines; jones,,brownjones,spencer,brown ; run; What is the value for the variable named Agent2 in the second observation? a. brown b. spencer c. ‘ ’(missing character value) d. There is no value because only one observation is created. 2. Which action assigns a reference named SALES to a permanent SAS data library? a. Issuing the command libref SALES ‘SAS-data-library’; b. Issuing the command libname SALES ‘SAS-data-library’; c. Submitting the statement libref SALES ‘SAS-data-library’; d. Submitting the statement libname SALES ‘SAS-data-library’; 3. The SAS data set sashelp.prdsales contains the variables region and actual with 4 observations per region . Sashelp.prdsales is sorted by Region and within region by salary in descending order. The following program is submitted: data one; set sashelp.prdsales; retain temp; by region descending actual; if first.region then do; temp=actual; output; end;

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
if last.region then do;
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

math2871_mock_exam_s206 - MATH2871 DATA MANAGEMENT FOR...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online