Juniper
JN0-420 · Question #60
Click the Exhibit button. Exhibit: Referring to the exhibit, which Python statement selects the <user-entry> element for the user logged in on the pts/2 TTY?
The correct answer is B. response.find("./uptime-information/user-table/[tty='pts/2']/user-entry"). See the full explanation below for the reasoning.
Question
Click the Exhibit button. Exhibit:
Referring to the exhibit, which Python statement selects the <user-entry> element for the user logged in on the pts/2 TTY?
Exhibit
Options
- Aresponse.find("./uptime-information/user-table/user-entry/tty='pts/2'")
- Bresponse.find("./uptime-information/user-table/[tty='pts/2']/user-entry")
- Cresponse.find("../user-entry/[tty='pts/2']")
- Dresponse.find("./uptime-information/user-table/user-entry@tty='pts/2'")
How the community answered
(67 responses)- A6% (4)
- B82% (55)
- C3% (2)
- D9% (6)
Community Discussion
No community discussion yet for this question.
