
Garrett W. answered 09/28/22
Professional web developer teaching all ages to code
What is true about the mysql_* family of PHP functions?
d. They are prone to allowing SQL-injection attacks.
The old mysql extension does not support prepared statements or parameterized queries, which are probably the simplest way to sanitize user input for database insertion. People commonly pass user input straight into database queries, which is a much bigger security risk without this functionality.
What mechanism does MySQL provide to ensure that operations on the database can occur concurrently?
a. Transactions
These are a way of bundling write operations together such that the database can execute them all as quickly as possible and if any one operation in the transaction fails, all operations that have already been processed in that transaction will be rolled back. This way you can be assured that either all operations were completed, or none were.
How will the following CSS rule alter the web page if it is applied in a style sheet? h1 { font-family: Arial, sans-serif}
a. All text in h1 elements will use a sans-serif font if Arial is not supported by the system
Font families are applied from left to right, stopping at the first one supported by the system.
In which of the following do you set the MIME (Multipurpose Internet Mail Extensions) type of the external style sheet?
c. <link>
The keyword in this question is "external". <mime> is not a valid HTML tag; <a> is generally used for clickable links; and <style> is used for inline stylesheets.
Which of the following are true about PDO Data Source Names (DSNs)?
c. A DSN can be a URI.
This one was a little confusing; I would have worded this choice as "A DSN is a type of URI." But none of the others are correct. See: https://www.php.net/manual/en/ref.pdo-mysql.connection.php
The hover pseudo-class allows you to change to an element’s style in which situation?
b.When the mouse is over the element