Classic Classic Quiz Sas Programming 1 by Tomowsiak Tomowsiak 519 played - 11 yrs ago Chapter 1 From Book QUIZ 24 QUESTIONS medium 1 What does the following code do? Nothing. . it wouldn't workIt sets the two year cut off to 1950, so dates such as 02/24/45 are interpreted as 02/24/2045It works, but does something else 2 Is the data being imported in this code external or instream? External. .InstreamNeither. . it's something else 3 The little "@" symbols is a line pointer. False. . it's a column pointerTrue. . it's a line pointerIt's vague. . could be either one. . depending on the situation 4 The "mmddyy08. " thing is a FORMAT False. . it's an INFORMAT. . tells SAS how to read data. . goes with input statementTrue. . it tells SAS how to store dataIt's vague. . could be either one in this particular bit of code 5 In the code below, the FORMAT year4. does what exactly? Format the output from proc print. . no data formatting internallyIt becomes forever associated with the dataNeither. . something else happens 6 Is the data being input free-format or fixed field? Free formatFixed fieldA combination of the two 7 Will the dataset test available when SAS is run again? Sure. . it's in the work libraryNo. . the work library is temporary. . stuff init goes away once is closed 8 The name field is numeric or character? How do you know? It's numeric. . the dollar sign tells me soIt's character. . the dollar sign tells me soIt's both. . difficult to tell 9 What's the different between an informat and a format? Nothing. . they have to same functionInformats tell sas how to output data. . formats how it's stored externally so it can read itThe inverse of option 2 above 10 Format's can't ever be associated with data permanently? This is true. . in tableview. . we'd never see formatted dataFalse. . we can format data all we like inside the actual table 11 The words record/field/variable all mean the same thing. False. . field and record mean the same thing. . variable is something elseFalse. . fields and variables are the same. . a record is a row. . so it's made of theseNeither 12 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/1925Copies mylib. test into mylib. test2. . shows the date as 2025 in table view 13 How do the year cutoff lines and the code highlighted in blue interact? They don't interactThe year cutoff is 1950, so a date like 06/12/1945 is shown as suchThe year cutoff is 1950, so a date like 06/12/1945 is shown as 06/12/2045 14 The following code does what exactly? Same as above. . but adds some dates are incorrect to the logSame as above . . but adds some dates are incorrect to the outputNeither 15 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 Yes. .No. . they've got dollar signs. . so they're characterThey're both 16 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 specfiedIn this code, the data coming in is free format. . columns are specifiedIt's a little of both 17 In the code shown, what's the result of the line that says total=? A new records is createdA new field is created. This field is computed as the data is imported.This code won't work. 18 In the code shown, residential and commerical are what kinds of fields? NumericVariableBoth 19 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 dataFalse. . can't create custom formats in sasNeither 20 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 printedNothing happens. . this code is broken 21 When proc print is run, how will the letter "C" in the original file look? Nothing. . it will be the sameCassetteSomething else 22 When the data step is executed in the code shown, how is the data read? Line by line from the file to the sas datasetHuge chunk by huge chunkAll of it is read all at one through a buffer 23 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 decimal9 long. . 2 decimals, decimal point. . no dollar sign, but commas9 long. . 2 decimals, decimal point, commas and dollar sign 24 Where are formats stored? I don't knowIn the same place as datasetsIn a special library