Q1
True / FalseMySQL's ABS function returns the absolute value of a given number.
The ABS function in MySQL returns the absolute value of a number, which is the non-negative value of that number.
Q2
True / FalseMySQL's CEIL function always rounds down to the nearest integer.
The CEIL function in MySQL rounds up to the nearest integer, not down.
Q3
True / FalseIn MySQL, the MOD function calculates the modulus (remainder) of two numbers.
The MOD function returns the remainder of the division of one number by another.
Q4
True / FalseMySQL's FLOOR function returns the largest integer less than or equal to a given number.
The FLOOR function in MySQL returns the largest integer that is less than or equal to the given number, effectively rounding down.
Q5
True / FalseIn MySQL, the ROUND function can take a second argument to specify the number of decimal places to round to.
The ROUND function can indeed take an optional second argument that specifies the number of decimal places to round the number to.
Q6
True / FalseMySQL's RAND function generates a random integer between 0 and 1.
The RAND function generates a random floating-point number between 0 (inclusive) and 1 (exclusive), not an integer.
Q7
True / FalseMySQL's SIGN function returns -1 for negative numbers, 1 for positive numbers, and 0 for zero.
The SIGN function returns -1, 0, or 1 depending on whether the input is negative, zero, or positive, respectively.
Q8
True / FalseIn MySQL, the POW function can be used as an alias for the POWER function to raise a number to a specified power.
The POW function is indeed an alias for the POWER function in MySQL, both of which raise a number to a specified power.
Q9
True / FalseMySQL's TRUNCATE function always rounds a number to the nearest integer.
The TRUNCATE function cuts off the number at the specified decimal places without rounding, which can result in non-integer values.
Q10
True / FalseIn MySQL, the FORMAT function is used to format a number as a string, including thousands separators and an optional number of decimal places.
The FORMAT function formats a number as a string, including commas as thousands separators and a specified number of decimal places.