nerdexam
LPI

117-301 · Question #122

The following excerpt is from a Perl script that reads from an LDAP database and writes an LDIF file: Which code snippet contains the correct query?

The correct answer is C. $mesg = $ldap->search(. See the full explanation below for the reasoning.

Question

The following excerpt is from a Perl script that reads from an LDAP database and writes an LDIF file: Which code snippet contains the correct query?

Exhibit

117-301 question #122 exhibit

Options

  • A$mesg = $ldap->search(
  • B$mesg = $ldap->search(
  • C$mesg = $ldap->search(
  • D$mesg = $ldap->search(

How the community answered

(30 responses)
  • A
    13% (4)
  • B
    3% (1)
  • C
    77% (23)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 117-301 Practice