Multiple choice technology programming languages

How many variables will be there in the output dataset totmark? Data totmark; Set scores (keep=name mark1 mark2 ); Total = mark1 + mark2; Drop mark1 mark2; Run;

  1. 2

  2. 4

  3. 5

  4. 1

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

The KEEP= option initially retains 3 variables (name, mark1, mark2) from the input dataset. The Total variable is then created (4 vars total). Finally, DROP removes mark1 and mark2, leaving only name and Total = 2 variables in the output.