Question : You have been given two dates as Dec and Jan, now you need to make sure that the date read by the SAS system as above, what value you should specify for the YEARCUTOFF= option?
1. YEARCUTOFF=46
2. YEARCUTOFF=55
3. YEARCUTOFF=45
4. YEARCUTOFF=54
5. Any value, you can specify
Correct Answer : 5 Explanation: As you can see date is given in correct form with the 4 digit year. Hence, it does not matter whether you specify any value to YEARCUTOFF= option.
Question : : You are working in a company named Acmeshell Inc. which has SAS licensed software. However, you have been asked to use specific SAS engine while working on the data set, why?
1. Because any temporary files created by the SAS will depend on this engine.
2. You may have to use specific files generated in Acmeshell needs to be read by SAS
3. It will make sure that you will be always using the latest version of the SAS software
4. It will specify the file format for files that will be stored in the library.
Correct Answer : 4 Explanation: SAS Engine : It will use set of internal instructions that SAS uses for writing to and from files in a SAS library. Engine will specifies the file format for the files that are stored in the library. which in turn enables SAS to access files with a particular format. It can even help in situations where you want to read vendor specific files and you have to use respective SAS engine.
Question : The contents of the raw data file SIZE are listed below:
--------10-------20-------30 72 95 The following SAS program is submitted: data test; infile 'size'; input @1 height 2. @4 weight 2; run; Which one of the following is the value of the variable WEIGHT in the output data set?
1. 2 2. 72 3. 95 4. . (missing numeric value)
Correct Answers: 2
Explanation: Since there is no period after weight2(weight2.) the pointer will move to column 2 Since the 2. is not specified correctly, it considers 2 as column input and moves the pointer to column 2. also remember, if you just specified @4 weight; it would still be ok and it will give the correct value 95.
What are the length and value of the variable ADDRESS? 1. Length is 14; value is `214 London Dri'. 2. Length is 14; value is `214 London Way'. 3. Length is 16; value is `214 London Drive'. 4. Length is 200; value is `214 London Drive'.
1. The SUM statement produces only a grand total of NUMBER. 2. The SUM statement produces only subtotals of NUMBER for each value of TYPE. 3. The SUM statement produces both a grand total of NUMBER and subtotals of NUMBER for each value of TYPE. 4. Nothing is produced by the SUM statement; the program fails to execute.