Free A00-280 Exam Braindumps (page: 9)

Page 8 of 25

Given the following data set DEMOG:



Which selection below would be considered hard-coding?

  1. if sexcd eq 1 then sex = "Male" ;
    else if sexcd eq 2 then sex = "Female" ;
  2. if site eq 1 then sexcd = 2 ;
    else if site eq 2 then sexcd = 1 ;
  3. if site eq 1 and sexcd ne 2 then check = 1 ;
    else if site eq 2 and sexcd ne 1 then check = 2 ;
  4. birthdt = input(dob, mmddyy10.) ;

Answer(s): B



Given the file sites.csv:



Which option would you need to add to the INFILE statement to clear the notes from this log?

  1. firstobs=2
  2. missover
  3. lrecl=2
  4. start=2

Answer(s): A



Given the following entry in the SAS log:



Which alternate method could you use to?

• Transpose all data
• Not produce a warning message in the log

  1. Use PROC TRANSPOSE with a WHERE clause to omit records with missing VISIT values
  2. Use PROC COPY with SELECT statements
  3. Use PROC DATASETS with SELECT and MODIFY statements
  4. Use a DATA step with conditional OUTPUT statements

Answer(s): D



Given the following partial output data set:



Which code was used to create AGECAT?

  1. if age <18 then AGECAT=1;
    if 18<=AGE<=40 then AGECAT=2;
    else AGECAT=3;
  2. if age <=18 then do AGECAT=1;
    else if 18<AGE<=40 then do AGECAT=2;
    else do AGECAT=3;
  3. if age <18 then AGECAT=1;
    else if 18<=AGE<=40 then AGECAT=2;
    else AGECAT=3;
  4. if age <=18 then AGECAT=1;
    else if 18<AGE<=40 then AGECAT=2;
    else AGECAT=3;

Answer(s): D






Post your Comments and Discuss SAS Institute A00-280 exam with other Community members:

A00-280 Exam Discussions & Posts