010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 62


Which of the following commands sets the variable USERNAME to the value bob?

Show Answer
Correct Answer: E

The command to set a variable in most shell environments (like Bash) is to use the syntax 'VARIABLE_NAME=value'. Therefore, to set the variable USERNAME to the value bob, you would use 'USERNAME=bob'.

Discussion

2 comments
Sign in to comment
beazzlebub
Jan 26, 2023

E is the correct answer

ninjaboy17
Nov 25, 2024

Why isn't this B. Is it because of the double == signs?

Skydragon208
Mar 9, 2025

Yes, == is the wrong syntax. Trick question.