Question 47 :

 The following SAS program is submitted:

 data work.passengers;

 if OrigPassengers = . then

 OrigPassengers = 100;

 TransPassengers = 100;

 OrigPassengers = .;

 NonPaying = 10;

 TotalPassengers = sum (OrigPassengers, TransPassengers);

 run;

 Which one of the following is the value of the TOTALPASSENGERS variable in the output data set?

 

  1. 100
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 1

 Exp : PDV initializes all variables in data step to missing first. So if statement yields true, so value of origpassenger becomes 100. Then transpassenger is assigned value of 100.

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