Cisco 200-901 Practice Test - Questions Answers, Page 2
List of questions
Related questions
Refer to the exhibit.
Which Python data structure does my_json contain?
map
list
json
dict
When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?
JSON
YAML
XML
x-form-encoding
Refer to the exhibit.
Which JSON is equivalent to the XML-encoded data?
Option A
Option B
Option C
Option D
FILL BLANK Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user “devnetuser”.
import requests import json
controller = ‘devnetapi.cisco.com/sandbox/apic_em’
url = “https://” + controller + “api/va/ticket”
payload = {‘username’: ‘_________________’, ‘password’: ‘370940885’} header = {‘Content-type’: ‘application.json’}
response = _______________________.post(url, data=json.dumps(payload), \ headers= ______________________, verify=False) r_json = response.json() print(r_json)
ticket = r_json[“response”][“serviceTicket”] print(ticket)
Which two statements about JSON and XML are true? (Choose two.)
The syntax of JSON contains tags, elements, and attributes.
XML objects are collections of key-value pairs.
JSON objects are collections of key-value pairs.
JSON arrays are an unordered set of key-value pairs.
The syntax of XML contains tags, elements, and attributes.
Which two statements about JSON and XML are true? (Choose two.)
Functions ensure that a developer understands the inner logic contained before using them as part of a script or application.
Functions create the implementation of secret and encrypted algorithms
Functions allow problems to be split into simpler, smaller groups, and reduce code repetition, which makes the code easier to read.
Functions store mutable values within a script or application.
Refer to the exhibit.
The output of a unified diff when comparing two versions of a Python script is shown. Which two "single_request_timeout()" functions are defined in fish.py and cat.py? (Choose two.)
What is a benefit of organizing code into modules?
reduces the length of code
enables code to be multifunctional
enables the reuse of code
improves overall performance
What is a benefit of organizing code into modules?
enables the code to be broken down into layers
improves collaboration of the development team
makes it easier to deal with large and complex systems
enables the inclusion of more programming languages in the code
What is the Git command to delete a local branch named “experiment” without a warning?
git branch -rm experiment
git branch -n experiment
git branch -f experiment
git branch -D experiment
Question