Correct Answer : Get Lastest Questions and Answer : Explanation: In option 1 you are increasing fee by 100 times. In option 2 you are increasing fee by 200% . Assume current fee is 5000 then after evaluating this expression fee will become 5000+(5000*2)=15000. In option 3 fee will be 10000 and option 4 is not correct. Hence, option 2 is correct as per the given requirement.
Question : The following SAS program is submitted:
data test; infile `file specification'; input name $ amount@@; run;
Which of the following is true? 1. Two @@ together are the same as one c 2. Two @@ hold the data records until the bottom of the DATA step. 3. Access Mostly Uused Products by 50000+ Subscribers 4. Two @@ are invalid syntax and will cause the program to fail to execute.
Explanation: Using the Double Trailing @ Line-Hold Specifier Sometimes you may need to create multiple observations from a single record of raw data. One way to tell SAS how to read such a record is to use the other line-hold specifier, the double trailing at-sign (@@ or "double trailing @"). The double trailing @ not only prevents SAS from reading a new record into the input buffer when a new INPUT statement is encountered, but it also prevents the record from being released when the program returns to the top of the DATA step. (Remember that the trailing @ does not hold a record in the input buffer across iterations of the DATA step.) For example, this DATA step uses the double trailing @ in the INPUT statement: data body_fat; input Gender $ PercentFat @@; datalines; m 13.3 f 22 m 22 f 23.2 m 16 m 12 ; proc print data=body_fat; title 'Results of Body Fat Testing'; run; The following output shows the resulting data set: Data Set Created with Double Trailing @ Results of Body Fat Testing 1 Percent Obs Gender Fat
1 m 13.3 2 f 22.0 3 m 22.0 4 f 23.2 5 m 16.0 6 m 12.0
Question :
Which SAS statement correctly uses column input to read the values in the raw data file below in this order: Address (4th field), SquareFeet (second field), Style (first field), Bedrooms (third field)?
Explanation: Column input specifies the variable's name, followed by a dollar ($) sign if the values are character values, and the beginning and ending column locations of the raw data values.
1. The BY statement in the DATA step causes a syntax error. 2. FIRST.DEPARTMENT and LAST.DEPARTMENT are variables in the WORK.TOTAL data set. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The values of the variable PAYROLL represent a total for all values of WAGERATE in the WORK.SALARY data set.