Multiple choice technology programming languages

I want to create a 2 way cross tabulation frequency based on Country and Sales using FREQ procedure. From the given options pick the correct code?

  1. Proc freq; Tables country sales; Run;

  2. Proc freq; Table country sales; Run;

  3. Proc freq; Tables country * sales; Run;

  4. Proc freq; Table country * sales; Run;

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

For a two-way crosstabulation in PROC FREQ, use the TABLES statement with an asterisk between variables: TABLES variable1 * variable2. The asterisk requests the cross-tabulation. Note it's TABLES (plural) not TABLE.