Q1
True / FalseIn Oracle, the ROUND function is used to round a numeric value to a specified number of decimal places.
The ROUND function rounds a numeric value to the nearest specified number of decimal places.
Q2
True / FalseThe CEIL function in Oracle returns the smallest integer that is greater than or equal to a given numeric value.
The CEIL function returns the smallest integer that is greater than or equal to the given numeric value.
Q3
True / FalseIn Oracle, the FLOOR function returns the largest integer that is less than or equal to a given numeric value.
The FLOOR function returns the largest integer that is less than or equal to the given numeric value.
Q4
True / FalseIn Oracle, the MOD function returns the remainder of a division operation.
The MOD function returns the remainder of the division of one number by another.
Q5
True / FalseThe TRUNC function in Oracle can be used to truncate a numeric value to a specified number of decimal places.
The TRUNC function truncates a numeric value to the specified number of decimal places without rounding.
Q6
True / FalseIn Oracle, the POWER function returns the result of raising one numeric value to the power of another.
The POWER function raises a number to the power of another number.
Q7
True / FalseThe SIGN function in Oracle returns the sign of a numeric value, indicating whether the value is positive, negative, or zero.
The SIGN function returns -1 if the number is negative, 0 if the number is zero, and 1 if the number is positive.
Q8
True / FalseIn Oracle, the ABS function returns the absolute value of a numeric expression.
The ABS function returns the absolute (non-negative) value of a numeric expression.
Q9
True / FalseThe LN function in Oracle calculates the natural logarithm of a given numeric value.
The LN function returns the natural logarithm (base e) of a specified numeric value.
Q10
True / FalseThe Oracle Certified Professional (OCP) exam includes knowledge on using numeric functions effectively, understanding their syntax, and optimizing their performance in SQL queries.
The OCP certification covers advanced topics, including the effective use of numeric functions, understanding their syntax, and optimizing their performance in SQL queries.
Q21
Multiple ChoiceWhich SQL code snippet uses the `ROUND` function to round the salary to 2 decimal places in Oracle?
SQL Code
SELECT employee_id, salary, ROUND(salary, 2) AS rounded_salary
FROM employees;
SELECT employee_id, salary, ROUND(salary, 2) AS rounded_salary
FROM employees;
SELECT employee_id, salary, ROUND(salary, 2) AS rounded_salary
FROM employees;
Options A, B, and C correctly demonstrate the use of the `ROUND` function to round the salary to 2 decimal places. Option D is incorrect because it does not use the `ROUND` function.
Q22
Multiple ChoiceWhich SQL code snippet uses the `TRUNC` function to truncate the salary to the nearest thousand in Oracle?
SQL Code
SELECT employee_id, salary, TRUNC(salary, -3) AS truncated_salary
FROM employees;
SELECT employee_id, salary, TRUNC(salary, -3) AS truncated_salary
FROM employees;
SELECT employee_id, salary, TRUNC(salary, -3) AS truncated_salary
FROM employees;
Options A, B, and C correctly demonstrate the use of the `TRUNC` function to truncate the salary to the nearest thousand. Option D is incorrect because it does not use the `TRUNC` function.
Q23
Multiple ChoiceWhich SQL code snippet uses the `MOD` function to find the remainder when the salary is divided by 1000 in Oracle?
SQL Code
SELECT employee_id, salary, MOD(salary, 1000) AS remainder
FROM employees;
SELECT employee_id, salary, MOD(salary, 1000) AS remainder
FROM employees;
SELECT employee_id, salary, MOD(salary, 1000) AS remainder
FROM employees;
Options A, B, and C correctly demonstrate the use of the `MOD` function to find the remainder when the salary is divided by 1000. Option D is incorrect because it does not use the `MOD` function.
Q24
Multiple ChoiceWhich SQL code snippet uses the `FLOOR` function to find the largest integer less than or equal to the salary in Oracle?
SQL Code
SELECT employee_id, salary, FLOOR(salary) AS floor_salary
FROM employees;
SELECT employee_id, salary, FLOOR(salary) AS floor_salary
FROM employees;
SELECT employee_id, salary, FLOOR(salary) AS floor_salary
FROM employees;
Options A, B, and C correctly demonstrate the use of the `FLOOR` function to find the largest integer less than or equal to the salary. Option D is incorrect because it does not use the `FLOOR` function.
Q25
Multiple ChoiceWhich SQL code snippet uses the `CEIL` function to find the smallest integer greater than or equal to the salary in Oracle?
SQL Code
SELECT employee_id, salary, CEIL(salary) AS ceil_salary
FROM employees;
SELECT employee_id, salary, CEIL(salary) AS ceil_salary
FROM employees;
SELECT employee_id, salary, CEIL(salary) AS ceil_salary
FROM employees;
Options A, B, and C correctly demonstrate the use of the `CEIL` function to find the smallest integer greater than or equal to the salary. Option D is incorrect because it does not use the `CEIL` function.
Q26
Multiple ChoiceWhich SQL code snippet demonstrates advanced use of the `POWER` function to calculate the square of the employee's salary in Oracle?
SQL Code
SELECT employee_id, salary, POWER(salary, 2) AS squared_salary
FROM employees;
SELECT employee_id, salary, POWER(salary, 2) AS squared_salary
FROM employees;
SELECT employee_id, salary, POWER(salary, 2) AS squared_salary
FROM employees;
Options A, B, and C correctly demonstrate advanced use of the `POWER` function to calculate the square of the employee's salary. Option D is incorrect because it does not use the `POWER` function.
Q27
Multiple ChoiceWhich SQL code snippet demonstrates advanced use of the `SQRT` function to calculate the square root of the employee's salary in Oracle?
SQL Code
SELECT employee_id, salary, SQRT(salary) AS sqrt_salary
FROM employees;
SELECT employee_id, salary, SQRT(salary) AS sqrt_salary
FROM employees;
SELECT employee_id, salary, SQRT(salary) AS sqrt_salary
FROM employees;
Options A, B, and C correctly demonstrate advanced use of the `SQRT` function to calculate the square root of the employee's salary. Option D is incorrect because it does not use the `SQRT` function.
Q28
Multiple ChoiceWhich SQL code snippet demonstrates certification-level use of the `SIGN` function to determine the sign of the employee's bonus in Oracle?
SQL Code
SELECT employee_id, bonus, SIGN(bonus) AS bonus_sign
FROM employees;
SELECT employee_id, bonus, SIGN(bonus) AS bonus_sign
FROM employees;
SELECT employee_id, bonus, SIGN(bonus) AS bonus_sign
FROM employees;
Options A, B, and C correctly demonstrate certification-level use of the `SIGN` function to determine the sign of the employee's bonus. Option D is incorrect because it does not use the `SIGN` function.
Q29
Multiple ChoiceWhich SQL code snippet demonstrates certification-level use of the `ABS` function to find the absolute value of the employee's bonus in Oracle?
SQL Code
SELECT employee_id, bonus, ABS(bonus) AS abs_bonus
FROM employees;
SELECT employee_id, bonus, ABS(bonus) AS abs_bonus
FROM employees;
SELECT employee_id, bonus, ABS(bonus) AS abs_bonus
FROM employees;
Options A, B, and C correctly demonstrate certification-level use of the `ABS` function to find the absolute value of the employee's bonus. Option D is incorrect because it does not use the `ABS` function.
Q30
Multiple ChoiceWhich SQL code snippet demonstrates certification-level use of the `EXP` function to calculate the exponential value of the employee's performance score in Oracle?
SQL Code
SELECT employee_id, performance_score, EXP(performance_score) AS exp_value
FROM employees;
SELECT employee_id, performance_score, EXP(performance_score) AS exp_value
FROM employees;
SELECT employee_id, performance_score, EXP(performance_score) AS exp_value
FROM employees;
Options A, B, and C correctly demonstrate certification-level use of the `EXP` function to calculate the exponential value of the employee's performance score. Option D is incorrect because it does not use the `EXP` function.