1.

Which variable returns code from operations that return true or false?(a) $rc(b) $rv(c) $rows(d) $aryI got this question by my school teacher while I was bunking the class.This intriguing question originated from Perl DBI Overview in section MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

Right answer is (a) $rc

Explanation: The PERL Non-handle variable ‘$rc’ returns code from operations that RETURN TRUE or FALSE. ‘$rv’ returns value from operations that return an integer. ‘$rows’ returns value from operations that return a row count.



Discussion

No Comment Found

Related InterviewSolutions