Quiz:
Reading Free-Format Data
Select the best answer for each question and click Score My Quiz.
- The raw data file referenced by
the fileref Students contains data that is
Raw Data File: Students
1---+----10---+----20---+ |
FRED
JOHNSON 18 USC 1 |
ASHLEY
FERRIS 20 NCSU 3 |
BETH
ROSEMONT 21 UNC 4 |
- Which input style should be used
to read the values in the raw data file referenced by the fileref
Students?
Raw Data File: Students
1---+----10---+----20---+ |
FRED
JOHNSON 18 USC 1 |
ASHLEY
FERRIS 20 NCSU 3 |
BETH
ROSEMONT 21 UNC 4 |
- Which of the following is not
a restriction when using list input?
- Which SAS statement reads the
raw data values in order and assigns them to the variables shown below?
Variables: FirstName (character), LastName
(character), Age (numeric), School (character),
Class (numeric)
Raw Data File: Students
1---+----10---+----20---+ |
FRED
JOHNSON 18 USC 1 |
ASHLEY
FERRIS 20 NCSU 3 |
BETH
ROSEMONT 21 UNC 4 |
- Which SAS statement should be
used to read the raw data file referenced by the fileref Salesrep?
Raw Data File: Salesrep
1---+----10---+----20---+----30 |
ELAINE:FRIEDMAN:WILMINGTON:2102 |
JIM:LLOYD:20:RALEIGH:38392 |
JENNIFER:WU:21:GREENSBORO:1436 |
- Which of the following raw data
files can be read using the MISSOVER option in the INFILE statement?
Missing values are indicated with teal-colored blocks.
- Which SAS program correctly reads
the data in the raw data file referenced by the fileref Volunteer?
Raw Data File: Volunteer
1---+----10---+----20---+----30 |
ARLENE
BIGGERSTAFF 19 UNC 2 |
JOSEPH
CONSTANTINO 21 CLEM 2 |
MARTIN
FIELDS 18 UNCG 1 |
- What type of input should be used
to read the values in the raw data file referenced by the fileref
Enrolled?
Raw Data File: Enrolled
1---+----10---+----20---+----30 |
UNC
ASHEVILLE 2,712 |
UNC
CHAPEL HILL 24,189 |
UNC
CHARLOTTE 15,031 |
UNC
GREENSBORO 12,323 |
- Which SAS statement correctly
reads the values for
Flavor and Quantity ?
Make sure the length of each variable can accommodate the values shown.
Raw Data File Cookies
1---+----10---+----20---+----30 |
CHOCOLATE CHIP 10,453 |
OATMEAL 12,187 |
PEANUT BUTTER 11,546 |
SUGAR 12,331 |
- Which SAS statement correctly
reads the raw data values in order and assigns them to these corresponding
variables:
YearFounded (numeric) , School (character) ,
Enrolled (numeric)?
Raw Data File: Founding
1---+----10---+----20---+----30---+----40 |
1868 U OF CALIFORNIA BERKELEY 31,612 |
1906 U OF CALIFORNIA DAVIS 21,838 |
1965 U OF CALIFORNIA IRVINE 15,874 |
1919 U OF CALIFORNIA LOS ANGELES 35,730 |
|