Question:40Duetogrowthwithinthe919areacode,thetelephoneexchange555isbeingreassignedtothe920areacode.

ThedatasetClients.PiedmontincludesthevariablePhone,whichcontainstelephonenumbersintheform919-555-1234.

WhichofthefollowingprogramswillcorrectlychangethevaluesofPhone?

1.datawork.piedmont(drop=areacodeexchange);

setclients.piedmont;

Areacode=substr(phone,1,3);

Exchange=substr(phone,5,3);

ifareacode='919'andexchange='555'

thenscan(phone,1,3)='920';

run;

2.Get all Questions and Answer from here

3.You need to have paid subscription to access all questions

4.Thanks for considering Python Certification Material

CorrectAnswer:3

TheSUBSTRfunctionreplacesvariablevaluesifitisplacedontheleftsideofanassignmentstatement.

You can access to full explanation to question and answer from this page.