1.

What is the return value from operations returning a row count?(a) $rc(b) $rv(c) $rows(d) $aryI had been asked this question in an online interview.This interesting question is from Making Database Backups topic in division Database Maintenance, Backups and Replication of MySQL

Answer»

Correct answer is (c) $rows

Easy explanation: The Perl Non-handle variable ‘$ary’ is an array or list REPRESENTING a row of values returned by a query. ‘$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