QuestionQ317

Automation and Programmability

Question Image

Refer to the exhibit. What is absent from this output so that it can be executed?

  • A double quotes (" ") around the "Cisco Devices" string
  • B exclamation point (!) at the beginning of each line
  • C square bracket ( [ ) at the beginning
  • D curly braket ( } ) at the end
Explanation

The exhibit shows a JSON-style structure that opens with a curly brace before "Cisco Devices", followed by an opening square bracket that begins the array and an inner object of name entries that closes with its own closing brace and the array's closing bracket. Counting delimiters shows one opening curly brace was never matched by a closing one, so the outer object is left open; the fix is a closing curly brace at the end of the output, not a leading square bracket, which is already present, or quotes/exclamation marks, which are unrelated to the syntax error.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!