ExamGecko
Home Home / Cisco / 200-901

Cisco 200-901 Practice Test - Questions Answers, Page 2

Question list
Search
Search

Refer to the exhibit.

Which Python data structure does my_json contain?

A.

map

A.

map

Answers
B.

list

B.

list

Answers
C.

json

C.

json

Answers
D.

dict

D.

dict

Answers
Suggested answer: D

Explanation:

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

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

A.

JSON

A.

JSON

Answers
B.

YAML

B.

YAML

Answers
C.

XML

C.

XML

Answers
D.

x-form-encoding

D.

x-form-encoding

Answers
Suggested answer: C

Refer to the exhibit.

Which JSON is equivalent to the XML-encoded data?

A.

Option A

A.

Option A

Answers
B.

Option B

B.

Option B

Answers
C.

Option C

C.

Option C

Answers
D.

Option D

D.

Option D

Answers
Suggested answer: C

Explanation:


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

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)

A.
A.
Answers
Suggested answer: A

Explanation:

Answer: A

Explanation:

devnetuser requests header

Reference: https://developer.cisco.com/docs/apic-em/#!hello-world

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

A.

The syntax of JSON contains tags, elements, and attributes.

A.

The syntax of JSON contains tags, elements, and attributes.

Answers
B.

XML objects are collections of key-value pairs.

B.

XML objects are collections of key-value pairs.

Answers
C.

JSON objects are collections of key-value pairs.

C.

JSON objects are collections of key-value pairs.

Answers
D.

JSON arrays are an unordered set of key-value pairs.

D.

JSON arrays are an unordered set of key-value pairs.

Answers
E.

The syntax of XML contains tags, elements, and attributes.

E.

The syntax of XML contains tags, elements, and attributes.

Answers
Suggested answer: C, E

Explanation:


devnetuser requests header

Reference: https://developer.cisco.com/docs/apic-em/Whello-world

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

A.

Functions ensure that a developer understands the inner logic contained before using them as part of a script or application.

A.

Functions ensure that a developer understands the inner logic contained before using them as part of a script or application.

Answers
B.

Functions create the implementation of secret and encrypted algorithms

B.

Functions create the implementation of secret and encrypted algorithms

Answers
C.

Functions allow problems to be split into simpler, smaller groups, and reduce code repetition, which makes the code easier to read.

C.

Functions allow problems to be split into simpler, smaller groups, and reduce code repetition, which makes the code easier to read.

Answers
D.

Functions store mutable values within a script or application.

D.

Functions store mutable values within a script or application.

Answers
Suggested answer: C

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.


A.


Answers
B.


B.


Answers
C.


C.


Answers
D.


D.


Answers
E.


E.


Answers
Suggested answer: A, B

What is a benefit of organizing code into modules?

A.

reduces the length of code

A.

reduces the length of code

Answers
B.

enables code to be multifunctional

B.

enables code to be multifunctional

Answers
C.

enables the reuse of code

C.

enables the reuse of code

Answers
D.

improves overall performance

D.

improves overall performance

Answers
Suggested answer: C

What is a benefit of organizing code into modules?

A.

enables the code to be broken down into layers

A.

enables the code to be broken down into layers

Answers
B.

improves collaboration of the development team

B.

improves collaboration of the development team

Answers
C.

makes it easier to deal with large and complex systems

C.

makes it easier to deal with large and complex systems

Answers
D.

enables the inclusion of more programming languages in the code

D.

enables the inclusion of more programming languages in the code

Answers
Suggested answer: B

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

A.

git branch -rm experiment

A.

git branch -rm experiment

Answers
B.

git branch -n experiment

B.

git branch -n experiment

Answers
C.

git branch -f experiment

C.

git branch -f experiment

Answers
D.

git branch -D experiment

D.

git branch -D experiment

Answers
Suggested answer: D

Explanation:


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

Total 471 questions
Go to page: of 48