Data Types
- While using DBI API functions are called and pointers to structures are used.
-
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”.
- What is the return value from operations returning a row count?
-
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.
- What is the non handle array representing a row of values?
-
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.
- What is the generic handle whose meaning depends on context?
-
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.
- MySQL does not automatically convert a date or time value to a number if the value is used in a numeric context.
-
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.