Html miscellaneous


  1. transaction() does not take the argument _______.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    transction() and readTransaction() are the two methods that take three arguments i.e. transaction callback as the first argument, error callback as the second argument, success callback as the third argument.


  1. Which feature is not used when SQL features are not being supported?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    When SQL feature is not supported then we use COMMIT, BEGIN, ROLLBACK SQL features and are marked as bogus. User agent uses the statements that contain these three words in case of failure of the support of SQL features.



  1. The sign is used for the placeholder _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    ‘?’ is used for the placeholder. Binding of the ? placeholder is done at a literal level. It is dynamically inserted into the statement. ‘?’ can be used in place of literals in SQL statements. If this character is not supported then the error code 5 is invoked.


  1. openDatabase() method does not take the argument in __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    openDatabase() and openDatabaseSync() methods takes the name of the database, version of the database, display name, estimated size in bytes of the data that is to be stored in the database. openDtabase() method works on WorkerUtils and Window, openDatabaseSync() method works on WorkerUtils.



  1. Which function is used to return a handle to the database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    prepareDatabase() function is used to return a handle to database. It is necessary to first create the database. showDocCount() shows the real work after creating the database. Syntax of calling a JavaScript function is: function prepareDatabase(ready, error).