Data Types


  1. The functions in Perl DBI called?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In 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. MySQL automatically converts 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: B

    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.



  1. The mode that does not remove trailing spaces when CHAR values are retrieved is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    When the CHAR values are stored, they are right-padded with spaces to the specified length. When CHAR values are retrieved, trailing spaces are removed unless the SQL mode ‘PAD_CHAR_TO_FULL_LENGTH’ is enabled.


  1. To disallow zero month or day parts in dates, the option used is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    MySQL permits to store the dates where the day or month and day are zero in a DATE or DATETIME column. This is helpful for applications that need to store birthdates for which the exact date is unknown.



  1. Which of these has special automatic update behavior?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The date and time types for representing temporal values are ‘DATE’, ‘TIME’, ‘DATETIME’, ‘TIMESTAMP’ and ‘YEAR’. Each temporal type has a range of valid values and a ‘zero’ value.