Classic Classic Quiz Arrays in SAS by Tomowsiak Tomowsiak 67 played - 12 yrs ago Chapter 16 from the book QUIZ 10 QUESTIONS hard 1 In the code shown, how many records are generated? 7However many are in the original fileNo records are generated but the code runsThe code is broken 2 Will the code shown below run, and why or why not? Yes. . all looks goodNo. . too few variables in the list to match the dimension of the arrayThere is another problem not listed hereThe problem is in the input data step 3 In the picture shown, the array name is shown correctly. No. . the array name includes the indexYes. . this is the correct way of showing just hte array name 4 Will the code shown below. Yes. . there is nothing wrong with it. .No. . 5 : 6 means we're getting at columns 5 and 6. . so we need those int he do loopIt won't work, but for a different reason 5 The following code is submitted. What are the results? A file called mylib. report2 is created, but it's emptyA file called mylib. report2 is created, and it has 7 fields in it, but the number of observations is unknown from the code.A file called mylib. report2 is created, and it has 7 fields and 20 obs.This code doesn't work at all 6 The following code is submitted. What are the results? This code is broken, so nothing happens.This code imports 8 fields from the csv, and then creates a new file called report2 in mylib2.The import step runs, but the array step is broken.None of the above. 7 The following code is submitted. What are the results? This code works perfectly, and creates fields, some of which are transformed and some are not.This code is broken. The line names(i) will create an index out of bounds message.The part of the code given by the transformation of daytemp works, but not the part given by names.Something else 8 The following code is submitted. What are the results? Nothing. . this code is brokenThis code works. Now there there is a 1 as the index for names, so it works. 9 Why are arrays so powerful? They work out a lot : )The allow us to reference elements one by one, without having to make a long, error prone list.Usually, arrays are used with do loops to produce make code very compact.Both options b and c above. 10 What's the correct way of thinking about array execution? A record is read in. The array operates on the elements(columns). . record is output. . next is read in and so onA column is read. . then we go down the column using the array A mistake in this Quiz ? Contact the author Commentaires