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 dataset starts by keeping 'name', 'mark1', and 'mark2' (3 variables). It then calculates 'Total' (making 4 variables). Finally, the 'Drop' statement removes 'mark1' and 'mark2', leaving only 'name' and 'Total' (2 variables).