Tag: programming languages

Questions Related to programming languages

  1. The code compiles and produces output: int version.

  2. Line 9 will not compile as there is no version of myMethod which takes a char as argument.

  3. An exception at line 9.

  4. Line 4 will not compile as void methods can't be overridden.


Correct Option: A

Which program creates the output data set Work.Temp2? SAS Data Set Work.Temp Obs Month1 Month2 Month3 1 10 20 30 2 11 22 33 3 55 66 77 4 100 200 300 SAS Data Set Work.Temp2 Obs Month Quarter1 Quarter2 Quarter3 Quarter4 1 Month1 10 11 55 100 2 Month2 20 22 66 200 3 Month3 30 33 77 300

  1. proc transpose data=work.temp out=work.temp2 prefix=Quarter; run;

  2. proc transpose data=work.temp out=work.temp2 name=Month prefix=Quarter; run;

  3. proc transpose data=work.temp out=work.temp2 prefix=Month name=Quarter; run

  4. proc transpose data=work.temp out=work.temp2 prefix=Month index=Quarter; run;


Correct Option: B
  1. For one-way frequency tables, PROC FREQ can compute statistics to test for equal proportions, specified proportions, or the binomial proportion

  2. PROC FREQ automatically displays the output in a report and can also save the output in a SAS data set.

  3. To estimate the strength of an association, PROC FREQ computes measures of association that tend to be close to zero when there is no association and close to the maximum (or minimum) value when there is perfect association.

  4. Statement 1 & 2

  5. Statement 2 & 3

  6. All of the above


Correct Option: F
  1. Continuous values

  2. Numeric Values

  3. Categorical Values

  4. Unique Values


Correct Option: C

Several SAS procedures produce frequency counts; only PROC FREQ computes chi-square tests for one-way to n-way tables and measures of association and agreement for contingency tables

  1. True

  2. False


Correct Option: B