ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 62

The following SAS program is submitted:
data work.one;
x = 3;
y = 2;
z = x ** y;
run;
Which one of the following is the value of the variable Z in the output data set?
A. 6
B. 9
C. . (missing numeric value)
D. The program fails to execute due to errors.
Click Comment link to get answer

17 comments:

  1. ** = exponentiation

    X**Y raise X to the power of Y

    So 3 at the power of 2 = 9

    Answer is B

    ReplyDelete
  2. Anonymous5:52 PM

    Oblex, You are right.
    we have to look the order sas follows.

    ReplyDelete
  3. Ans is B

    Explanation--> z=x**y;
    =3**2 =>it means 3 raised to the power 2.
    =9

    ReplyDelete
  4. Thanks for the informative Article.... SAS Training in Chennai

    ReplyDelete
  5. Anonymous9:06 PM

    This comment has been removed by the author.

    ReplyDelete
  6. Anonymous9:07 PM

    z=3^2=9 iam sorry

    ReplyDelete
  7. It's a very difficult way. But when he came to see how to do this site and then know a lot of it. I like to see this recipe in the web here. สินค้า

    ReplyDelete
  8. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information.
    SAS Training in Bangalore

    ReplyDelete