Q1
True / FalseIn PostgreSQL, the ROUND() function can only be used with integers.
The ROUND() function can be used with any numeric value, not just integers. It rounds the numeric value to the nearest integer or specified decimal places.
Q2
True / FalseThe ABS() function in PostgreSQL returns the absolute value of a numeric input.
The ABS() function returns the absolute (non-negative) value of the numeric input.
Q3
True / FalseIn PostgreSQL, the MOD() function is used to calculate the remainder of a division operation.
The MOD() function returns the remainder of the division of two numeric values.
Q4
True / FalseThe CEIL() function in PostgreSQL always rounds a number up to the nearest integer.
The CEIL() (or CEILING()) function rounds the numeric value up to the nearest integer.
Q5
True / FalsePostgreSQL’s TRUNC() function can only truncate numbers to an integer.
The TRUNC() function can truncate numbers to a specified number of decimal places, not just to an integer.
Q6
True / FalseThe POWER() function in PostgreSQL raises a number to the power of another number.
The POWER() function calculates the value of a number raised to the power of another number.
Q7
True / FalseIn PostgreSQL, the SQRT() function can be used to find the square root of a negative number
The SQRT() function cannot be used with negative numbers as the result would be a complex number, which PostgreSQL does not support natively for this function.
Q8
True / FalsePostgreSQL’s LOG() function can take a base and a number as arguments.
The LOG() function in PostgreSQL can take two arguments: the base and the number, to return the logarithm of the number to the given base.
Q9
True / FalseThe RANDOM() function in PostgreSQL generates a random number between 0 and 1.
The RANDOM() function returns a random floating-point value between 0 (inclusive) and 1 (exclusive).
Q10
True / FalseIn PostgreSQL, using the FLOOR() function will always return a value less than or equal to the original number.
The FLOOR() function always rounds down the numeric value to the nearest integer that is less than or equal to the original number.