your own for free
we will not publish anything on your wall
Stay logged in
Create my account
+ Create a Quiz
Sport & Recreation
Quiz High Tech
Sas Programming 1
on 6 Mar 12, enabled by
(67% of success)
24 questions - 517 players
Chapter 1 From Book
What does the following code do?
Nothing. . it wouldn't work
It sets the two year cut off to 1950, so dates such as 02/24/45 are interpreted as 02/24/2045
It works, but does something else
Is the data being imported in this code external or instream?
Neither. . it's something else
The little "@" symbols is a line pointer.
False. . it's a column pointer
True. . it's a line pointer
It's vague. . could be either one. . depending on the situation
The "mmddyy08. " thing is a FORMAT
False. . it's an INFORMAT. . tells SAS how to read data. . goes with input statement
True. . it tells SAS how to store data
It's vague. . could be either one in this particular bit of code
In the code below, the FORMAT year4. does what exactly?
Format the output from proc print. . no data formatting internally
It becomes forever associated with the data
Neither. . something else happens
Is the data being input free-format or fixed field?
A combination of the two
Will the dataset test available when SAS is run again?
Sure. . it's in the work library
No. . the work library is temporary. . stuff init goes away once is closed
The name field is numeric or character? How do you know?
It's numeric. . the dollar sign tells me so
It's character. . the dollar sign tells me so
It's both. . difficult to tell
What's the different between an informat and a format?
Nothing. . they have to same function
Informats tell sas how to output data. . formats how it's stored externally so it can read it
The inverse of option 2 above
Format's can't ever be associated with data permanently?
This is true. . in tableview. . we'd never see formatted data
False. . we can format data all we like inside the actual table
The words record/field/variable all mean the same thing.
False. . field and record mean the same thing. . variable is something else
False. . fields and variables are the same. . a record is a row. . so it's made of these
The code shown does what exactly with respect to the year cutoff statement and the code highlighted in blue?
Copies mylib. test into mylib. test2. .
Copies mylib. test into mylib. test2. . show the date as 06/12/1925
Copies mylib. test into mylib. test2. . shows the date as 2025 in table view
How do the year cutoff lines and the code highlighted in blue interact?
They don't interact
The year cutoff is 1950, so a date like 06/12/1945 is shown as such
The year cutoff is 1950, so a date like 06/12/1945 is shown as 06/12/2045
The following code does what exactly?
Same as above. . but adds some dates are incorrect to the log
Same as above . . but adds some dates are incorrect to the output
Are the fields lastname and month numeric data sasuser. sales; infile saledata; input LastName $ 1-7 Month $ 9-11 Residential 13-21 Commercial 23-31; Total=residential+commercial; ru
No. . they've got dollar signs. . so they're character
Data sasuser. sales; infile saledata; input LastName $ 1-7 Month $ 9-11 Residential 13-21 Commercial 23-31; Total=residential+commercial; run; proc print data=sasuser. sales; run;
In this code, the data coming in is fixed field. . columns are specfied
In this code, the data coming in is free format. . columns are specified
It's a little of both
In the code shown, what's the result of the line that says total=?
A new records is created
A new field is created. This field is computed as the data is imported.
This code won't work.
In the code shown, residential and commerical are what kinds of fields?
According to the code shown, we're creating a custom format of character type, so we can use it just as we use formats that come with SAS.
True. . we can apply it when we print the data. . or import the data
False. . can't create custom formats in sas
What does the code below show?
It creates a format called item format of character type. . aug99dat is brought it. . formats are applied permanetly. . data is printed
Nothing happens. . this code is broken
When proc print is run, how will the letter "C" in the original file look?
Nothing. . it will be the same
When the data step is executed in the code shown, how is the data read?
Line by line from the file to the sas dataset
Huge chunk by huge chunk
All of it is read all at one through a buffer
When the code below is run, how will the dollar9. 2 format format the data?
9 long. . 2 decimals, decimal point any number of numbers in front of decimal
9 long. . 2 decimals, decimal point. . no dollar sign, but commas
9 long. . 2 decimals, decimal point, commas and dollar sign
Where are formats stored?
I don't know
In the same place as datasets
In a special library
Quiz.biz does not certify the quizzes to be reliable, contact Tomowsiak !
Comment this Quiz
If you want to rank and comment this quizz,
create an account
You will love these quizzes
Introduction to Computers…
1 553 players
Lab Apparatus Quiz
3 404 players
CCNA 1 - Chapter 2
Parts of a Computer
2 414 players
Logo Design Quiz
10 yrs ago
this month )
71% in 171s
67% in 301s
42% in 302s
38% in 59s
Autres quizz de Tomowsiak
Arrays in SAS
Reading date and time values
Design Of Experiments
User defined formats chapter 7
Latest quizzes & tests
Mobile & social networks
Test de connaissances
2 268 899
How to create a Quiz ?