Multiple choice technology programming languages

The following program is submitted: proc contents data=sashelp.class varnum; quit; What does VARNUM option print?

  1. a list of variable names

  2. the total number of variables

  3. a list of variable names in the alphabetic order

  4. a list of variable names in the order of their logical position

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

In SAS, the VARNUM option in PROC CONTENTS prints the list of variables based on their logical position (creation order) in the dataset. By default, variables are listed alphabetically, so omitting this option yields alphabetical sorting, making the alphabetical choice incorrect.