1.

The variable that is a handle to a database object is ______________(a) $dbh(b) $sth(c) $fh(d) $hThis question was posed to me in an online interview.This interesting question is from Perl DBI Overview topic in division MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

Correct choice is (a) $dbh

For EXPLANATION I would say: The variable NAMED ‘$dbh’ is a HANDLE to an open file. ‘$h’ is a generic handle and the meaning depends on context. ‘$dbh’ is a handle to a DATABASE object. ‘$sth’ is a handle to a query object.



Discussion

No Comment Found

Related InterviewSolutions