SAS Certified Base Programmer 123 Questions (38)
The SASDATA.BANKS data set has five observations when the following SAS program is submitted: libnamesasdata ‘SAS-date-library’; data allobs; set sasdata.banks; capital=0; do year = 2000 to 2020 by 5; capital + ((capital+2000) * rate); output; end; How many observations will the ALLOBS data set contain? A. 5 B. 15 C. 20 D. 25
SAS Certified Base Programmer 123 Questions (37)
The SAS data set named COMPANY.PRICES is listed below: COMPANY.PRICES prodid price producttype sales returns K12S 5.10 NETWORK 15 2 B132S 2.34 HARDWARE 300 10 R18KY2 1.29 SOFTWARE 25 5 3KL8BY 6.37 HARDWARE 125 15 DY65DW 5.60 HARDWARE 45 5 DGTY23 4.55 HARDWARE 67 2 The following SAS program is submitted: libnamecompany ‘SAS-data-library’; data hware […]
SAS Certified Base Programmer 123 Questions (36)
The following SAS program is submitted: data allobs; set sasdata.origin (firstobs = 75 obs = 499); run; The SAS data set SASDATA.ORIGIN contains 1000 observations. How many observations does the ALLOBS data set contain? A. 424 B. 425 C. 499 D. 1000
SAS Certified Base Programmer 123 Questions (35)
The following SAS program is submitted: data_null_; set old (keep = prod sales1 sales2); file ‘file-specification’; put sales1 sales2; run; Which one of the following default delimiters separates the fields in the raw data file created? A. : (colon) B. (space) C. , (comma) D. ;(semicolon)
SAS Certified Base Programmer 123 Questions (34)
The following SAS program is submitted: data_null_; set old; put sales1 sales2; run; Where is the output written? A. the SAS log B. the raw data file that was opened last C. the SAS output window or an output file D. the data set mentioned in the DATA statement