The following SAS program is submitted:
data work.sales;
do year = 1 to 5;
do month = 1 to 12;
x + 1;
end;
end;
run;
Which one of the following represents how many observations are written to the WORK.SALES data set?
A. 0
B. 1
C. 5
D. 60
Click Comment link to get answer
B
ReplyDeleteB
ReplyDeleteB, reason: The output is missing.To write all (12*5) 60 values change syntax to :
ReplyDelete.....
x + 1;
*output;
end;
end;
run;
proc print data= work.sales;run;
This comment has been removed by the author.
ReplyDeleteValue of X is 60 but no of observations in that dataset is 1.
ReplyDeleteAnswer is B
Number of observation is 1 so Answer is {B}
ReplyDeleteSakar;
ReplyDeleteIf you do this then it will give you 60 months out put.
options formdlim = '*' nocenter pageno=1;
data work.sales;
do year = 1 to 5;
do month = 1 to 12;
Output;
end;
end;
run;
proc print data=work.sales;
run;
The reason it is giving us one observation is x+1, the end output is placed.
there's only one observation (x=60). Because the output is missing.
ReplyDeleteHaha. Caught me on that one! I would have jumped in on 60 as the answer without reading the question properly. x=60 and the number of obs = 1.
ReplyDeleteSAS exam requires keen attention to details in each and every question.
WHICH IS CORRECT ONE
ReplyDeletei am going to give certification 2marrow..is this Q's are enought?
ReplyDeleteThe one observation is x+1 or is it x=60?
ReplyDeleteOnly 1 obs with value of x=60
DeleteB
ReplyDeletewhy year = 6 and month=13?
ReplyDeletebecause of x+1
Deleteobs month year x
1 6 13 60
D
ReplyDeleteReally a very fine way to express and looking a very pleasant article with full of healthy information. I am definitely going to tell in my class about this platform and the information shared here. Very well written.ระบบขายออนไลน์
ReplyDeleteAnswer : 60 run the following code
ReplyDeleteproc print data=work.sales;
run;
It is designed for time sharing systems.It is similar to FCFS scheduling,but preemption is added to switch between processes.A small unit of time called time quantum is defined.The ready queue is treated as a circular queue.To implement RR scheduling,we keep ready queue as FIFO queue of processes
ReplyDeleteNice post ! Thanks for sharing valuable information with us. Keep sharing.
ReplyDeletemicrosoft installation and configuration services
B
ReplyDeleteB
ReplyDelete