nerdexam
CIW

1D0-520 · Question #94

Consider the following code: $dbcon=mysql_connect("james.stangernet.com","example"); mysql_select_db("databaseone"); Which of the following describes the function of this code?

The correct answer is C. It is creating a connection to the database. See the full explanation below for the reasoning.

Question

Consider the following code:

$dbcon=mysql_connect("james.stangernet.com","example"); mysql_select_db("databaseone"); Which of the following describes the function of this code?

Options

  • AIt is selecting a table from the database.
  • BIt is conducting a join for a new database.
  • CIt is creating a connection to the database.
  • DIt is selecting a database record and creating a new record.

How the community answered

(40 responses)
  • A
    13% (5)
  • B
    5% (2)
  • C
    80% (32)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-520 Practice