Exams > Cisco > 200-901: DevNet Associate (DEVASC)
200-901: DevNet Associate (DEVASC)
Page 12 out of 39 pages Questions 111-120 out of 390 questions
Question#111

Refer to the exhibit.

Which Python data structure does my_json contain?

  • A. map
  • B. list
  • C. json
  • D. dict
Discover Answer Hide Answer

D
Reference:
https://stackoverflow.com/questions/34764979/loading-python-string-with-u-as-json?noredirect=1&lq=1

Question#112

When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?

  • A. JSON
  • B. YAML
  • C. XML
  • D. x-form-encoding
Discover Answer Hide Answer

A
Reference:
https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIintro.pdf

Question#113

Refer to the exhibit.

Which JSON is equivalent to the XML-encoded data?
A.

B.

C.

D.

Discover Answer Hide Answer

B
Reference:
https://www.guru99.com/json-vs-xml-difference.html

Question#114

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)

Discover Answer Hide Answer

See explanation below.
devnetuser
requests
header
Reference:
https://developer.cisco.com/docs/apic-em/#!hello-world

Question#115

Which two statements about JSON and XML are true? (Choose two.)

  • A. The syntax of JSON contains tags, elements, and attributes.
  • B. XML objects are collections of key-value pairs.
  • C. JSON objects are collections of key-value pairs.
  • D. JSON arrays are an unordered set of key-value pairs.
  • E. The syntax of XML contains tags, elements, and attributes.
Discover Answer Hide Answer

CE

Question#116

Which statement describes the benefit of using functions in programming?

  • A. Functions ensure that a developer understands the inner logic contained before using them as part of a script or application.
  • B. Functions create the implementation of secret and encrypted algorithms.
  • C. Functions allow problems to be split into simpler, smaller groups, and reduce code repetition, which makes the code easier to read.
  • D. Functions store mutable values within a script or application.
Discover Answer Hide Answer

C

Question#117

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.)
A.

B.

C.

D.

E.

Discover Answer Hide Answer

BC

Question#118

What is a benefit of organizing code into modules?

  • A. reduces the length of code
  • B. enables code to be multifunctional
  • C. enables the reuse of code
  • D. improves overall performance
Discover Answer Hide Answer

C

Question#119

What is a benefit of organizing code into modules?

  • A. enables the code to be broken down into layers
  • B. improves collaboration of the development team
  • C. makes it easier to deal with large and complex systems
  • D. enables the inclusion of more programming languages in the code
Discover Answer Hide Answer

C

Question#120

What is the Git command to delete a local branch named `experiment` without a warning?

  • A. git branch ג€"rm experiment
  • B. git branch ג€"n experiment
  • C. git branch ג€"f experiment
  • D. git branch ג€"D experiment
Discover Answer Hide Answer

D
Reference:
https://www.atlassian.com/git/tutorials/using-branches

chevron rightPrevious Nextchevron right