The distinction between options A and D lies in the interpretation of "unformatted output" in option D.
Option A states that the command's output is displayed, which typically implies that the output is presented as it would appear in a terminal session, with formatting such as line breaks, indentation, and spacing.
Since the script executes the command and retrieves its output, it's more accurate to say that the output is displayed rather than explicitly stating it's unformatted. Therefore, option A, "display the output of a command that is entered on that device," is a more suitable choice than option D.
The output of the command executed on the remote device is streamed line by line via the stdout variable.
Each line is printed with print(u) inside the loop.
Since no specific formatting or processing is applied to the output, "unformatted" might also be a valid way to describe the result.
D is correct answer , there is a difference betweem formatted and unformatted output and no formatting is applied to the output in this case , what is the purpose of this question ? This is a primitive script , ping the IP , SSH to the host if it's reachable , run the command entered earlier, check the unformatted results , why is this question in CCNP exam ? CCNA has more difficult questions , what is that special knowledge correct answer to this question proves that a network engineer must have to be a professional compared to that of an associate ?
Based on the available information, the script is designed to execute a command on a remote device over SSH and print the output. So the correct answer is:
A. display the output of a command that is entered on that device
It also does SSH to the device entered, if the ping succeeds. BTW, this is a terrible Python code.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Mizuchan
Highly Voted 1 year, 4 months agobuddhagaut
1 year, 4 months agoslacker_at_work
1 year, 3 months agoslacker_at_work
1 year, 3 months agoMizuchan
1 year, 4 months agoAbbribas
Most Recent 6 months agoa67c04a
7 months, 1 week agozbeugene7
8 months, 2 weeks agopeer1024
9 months, 2 weeks agoCiscoTerminator
10 months ago[Removed]
1 year agosupershysherlock
1 year, 3 months agoNazgulNr5
1 year, 4 months ago