Tag: programming languages

Questions Related to programming languages

  1. Document Generation

  2. Code Generation

  3. Both 1 and 2

  4. None of the above


Correct Option: C
  1. y = '100'

  2. y = 100 and a NOTE is written in the SAS log saying that character value has been converted to numeric value

  3. y = 100 and no NOTE is written in the SAS log

  4. Program does not execute due to Syntax Errors


Correct Option: B
  1. x y {10 }

  2. Syntax Error due to the double quotes

  3. x y { 10 "100" }

  4. x y { 10 100 }


Correct Option: C
  1. No observations.No variables

  2. variable x is created with 3 observations with values 1,2 and 3

  3. Array should be given a name during initialization.Syntax Error

  4. The variables x1 , x2 and x3 are created with the values 1, 2 and 3


Correct Option: D
  1. proc means; ( min max nmiss maxdec=2);

  2. proc means; var x /min max nmiss maxdec=2;

  3. proc means min max nmiss maxdec=2;

  4. proc means; var x ( min max nmiss maxdec=2);


Correct Option: C
  1. tables product/region;

  2. tables product * region;

  3. tables product,region;

  4. tables product region;


Correct Option: B
  1. proc datasets lib=Mywork kill ;run;

  2. proc datasets lib=Mywork delete ;run;

  3. proc datasets; lib=Mywork delete ;run;

  4. proc datasets lib=Mywork erase ;run;


Correct Option: A