An operator is at a prompt and types cd - after having earlier changed from /etc/nginx to /var/www/html. What is the effect of that command?
The dash is a special operand that the cd builtin maps to the OLDPWD variable, which the shell updates on each successful directory change. Since the operator moved from /etc/nginx to /var/www/html, OLDPWD holds /etc/nginx, so the command switches back there and echoes the new directory.
Why this answer
The shell maintains the OLDPWD variable and updates it after every successful directory change. The cd builtin treats a bare dash as a request to switch to that stored path and then prints it, giving a quick toggle between two working directories without retyping long paths.
Exam trap
The trap here is confusing the dash with the two-dot parent reference or with the root slash, when the dash actually means the previous directory.