nerdexam
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

JN0-420 question #60 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)
  • A
    6% (4)
  • B
    82% (55)
  • C
    3% (2)
  • D
    9% (6)

Community Discussion

No community discussion yet for this question.

Full JN0-420 Practice