SAS Certified Base Programmer 123 Questions (76)
The following SAS program is submitted: data work.test; Author = ‘Agatha Christie’; First = substr(scan(author,1,’ ,’),1,1); run; Which one of the following is the length of the variable FIRST in the output data set? A. 1 B. 6 C. 15 D. 200
SAS Certified Base Programmer 123 Questions (75)
The following SAS program is submitted: data work.test; Author = ‘Christie, Agatha’; First = substr(scan(author,2,’ ,’),1,1); run; Which one of the following is the value of the variable FIRST in the output data set? A. A B. C C. Agatha D. ‘ ‘ (missing character value)
SAS Certified Base Programmer 123 Questions (74)
The following SAS program is submitted: data work.test; Title = ‘A Tale of two Cities, Charles j.Dickens’; Word = scan(title,3,’ ,’); run; Which one of the following is the value of the variable WORD in the output data set? A. T B. of C. Dickens D. ‘ ‘ (missing character value)
SAS Certified Base Programmer 123 Questions (73)
The following SAS program is submitted: data work.test; First = ‘Ipswich, England’; City_Country= substr(First,1,7)!!’, ‘!!’England’; run; Which one of the following is the length of the variable CITY_COUNTRY in the output data set? A. 6 B. 7 C. 17 D. 25
SAS Certified Base Programmer 123 Questions (72)
The following SAS program is submitted: data work.test; First = ‘Ipswich, England’; City = substr(First,1,7); City_Country= City!!’; ‘!!’England’; run; Which one of the following is the value of the variable CITY_COUNTRY in the output data set? A. Ipswich!! B. Ipswich, England C. Ipswich, ‘England’ D. Ipswich , England