View all questions & answers for the Implementing Cisco Enterprise Network Core Technologies (350-401 ENCOR) Exam Materials exam
Implementing Cisco Enterprise Network Core Technologies (350-401 ENCOR) Exam Materials - Question #253 Discussion
Community Explanations & Comments (2)
Anonymous User
1 month ago
Line 4 is: File = open
File.open() is wrong!
File.open() is wrong!
Anonymous User
1 month ago
Line 1 -> import json
Line 2 -> while True:
Line 3 -> except
Line 4 -> File = open
Line 5 -> File.close()
Line 2 -> while True:
Line 3 -> except
Line 4 -> File = open
Line 5 -> File.close()
An engineer must create a script to append and modify device entries in a JSON-formatted file. The script must work as follows: Until interrupted from the keyboard, the script reads in the hostname of a device, its management IP address, operating system type, and CLI remote access protocol. After being interrupted, the script displays the entered entries and adds them to the JSON-formatted file, replacing existing entries whose hostname matches. The contents of the JSON-formatted file are as follows: { "examplerouter": { "ip": "203.0.113.1", "os": "ios-xe", "protocol": "ssh" }, ... } Drag and drop the statements onto the blanks within the code to complete the script. Not all options are used. (Choose the correct answer)
Brave-Dump Community Votes
No community votes submitted yet. Be the first to vote!