Q1
True / FalseIn Oracle, a NULL value represents the absence of a value.
A NULL value in Oracle indicates that the data is missing or not applicable, representing the absence of a value.
Q2
True / FalseIn Oracle, a column defined with the NOT NULL constraint can contain NULL values.
A column defined with the NOT NULL constraint cannot contain NULL values; it must always contain a value.
Q3
True / FalseThe NULL keyword in Oracle can be used in SQL statements to insert a NULL value into a column.
The NULL keyword is used in SQL statements to insert a NULL value into a column.
Q4
True / FalseIn Oracle, the expression NULL = NULL returns TRUE.
In Oracle, the expression NULL = NULL returns UNKNOWN, because NULL represents an unknown value, and comparing two unknowns does not yield a definitive TRUE or FALSE.
Q5
True / FalseIn Oracle, the NVL function can be used to replace NULL values with a specified value.
The NVL function is used to replace NULL values with a specified value, allowing for handling of NULL values in queries.
Q6
True / FalseThe IS NOT NULL condition in Oracle is used to filter out rows that contain NULL values in a specified column.
The IS NOT NULL condition is used to filter out rows where a specified column contains NULL values.
Q7
True / FalseIn Oracle, a unique constraint on a column allows multiple NULL values.
In Oracle, a unique constraint allows multiple NULL values because NULLs are considered distinct from each other.
Q8
True / FalseIn Oracle, the COALESCE function returns the first non-NULL value from a list of expressions.
The COALESCE function returns the first non-NULL value from a list of expressions, providing a way to handle NULL values in queries.
Q9
True / FalseOracle treats empty strings ('') and NULL as the same in VARCHAR2 columns.
In Oracle, empty strings in VARCHAR2 columns are treated as NULL, meaning '' is considered equivalent to NULL.
Q10
True / FalseThe Oracle Certified Professional (OCP) exam includes topics on handling NULL values and using functions like NVL and COALESCE to manage NULLs in SQL statements.
The OCP certification exam covers advanced topics, including how to handle NULL values and use functions like NVL and COALESCE to manage NULLs in SQL statements, reflecting the candidate's comprehensive understanding of NULL handling in Oracle.
Q24
Multiple ChoiceIdentify the SQL scripts that correctly insert NULL values into a table in Oracle.
Inserting NULL values can be done by either explicitly specifying NULL or omitting the column in the INSERT statement. The correct scripts will demonstrate these methods.