Question: QUESTION 11 In this line $db = new SQLite3($filename) or die(Didn't work); If there is an error Didn't work is printed and any remaining code
QUESTION 11
In this line
$db = new SQLite3($filename) or die("Didn't work");
| "If there is an error ""Didn't work"" is printed and any remaining code on the page does not execute." | ||
| "Nothing will ever be printed because or die() kills all code, even the string in the parentheses." | ||
| "If there is an error ""Didn't work"" is printed to the local log file." |
QUESTION 12
Some of the official sqlite data types are ____. Choose all that apply.
| big | ||
| NULL | ||
| INTEGER | ||
| BLOB | ||
| REAL |
QUESTION 13
"exec() does not return a record set, query() might."
True
False
QUESTION 14
With this SQL statement ____.
$s = "INSERT INTO 'tb8' ('id','name') VALUES ('3','mo')";
| you need to run $db->join($s) to add the record | ||
| you need to run $db->query($s) to add the record | ||
| you need to run $db->exec($s) to add the record |
QUESTION 15
the main data container of our databases is the ____.
| list | ||
| array | ||
| view | ||
| table |
QUESTION 16
"What's true here?
$s = "CREATE TABLE 'tbl8' ('id' INTEGER PRIMARY KEY NOT NULL, 'name' TEXT)";
| The field names must be all capital letters. | ||
| SQL statements must be put in the heredoc format. | ||
| nothing is wrong with this code. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
