Data Types


  1. While using DBI API functions are called and pointers to structures are used.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    While using the DBI API functions are called and pointers to structures are used. The functions are called “methods,” pointers are called “references,” pointer variables are called “handles”.


  1. What is the return value from operations returning a row count?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    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.



  1. What is the non handle array representing a row of values?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    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.


  1. What is the generic handle whose meaning depends on context?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The variable named ‘$fh’ 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.



  1. MySQL does not automatically convert a date or time value to a number if the value is used in a numeric context.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    MySQL automatically converts a date or time value into a number if the value is used in a numeric context and vice versa. A ‘zero’ value can also be represented in MySQL.