SQL and Oracle Database Concepts

Test your knowledge of SQL syntax, database objects, constraints, and Oracle-specific features including joins, MERGE statements, and data types.

20 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

Which type of argument passes a value from a calling environment?

  1. a) VARCHER2.
  2. b) BOOLEAN.
  3. c) OUT.
  4. d) IN.
Question 2 Multiple Choice (Multiple Answers)

All users currently have the INSERT privileges on the PLAYER table. You want only your users to insert into this table using the ADD_PLAYER procedure. Which two actions must you take? (Choose two)

  1. a) GRANT SELECT ON ADD_PLAYER TO PUBLIC;
  2. b) GRANT EXECUTE ON ADD_PLAYER TO PUBLIC;
  3. c) GRANT INSERT ON PLAYER TO PUBLIC;
  4. d) GRANT EXECUTE, INSERT ON ADD_PLAYER TO PUBLIC;
  5. e) REVOKE INSERT ON PLAYER FROM PUBLIC;
Question 3 True/False

SQL is a procedural language?

  1. True
  2. False
Question 4 True/False

With optimistic locking a user may have to redo their work when a conflict occurs?

  1. True
  2. False
Question 5 True/False

The two types of SQL environment are interactive and embedded?

  1. True
  2. False
Question 6 True/False

Catch_#22 valid column name?

  1. True
  2. False
Question 7 True/False

In a select with a group by clause, a where clause, and a having clause, the where conditions are applied before the having conditions?

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

Which statement about a table is true?

  1. A table can have up to 10,000 columns.
  2. The size of a table does NOT need to be specified
  3. A table CANNOT be created while users are using the database
  4. The structure of a table CANNOT be modified while the table is online
Question 9 Multiple Choice (Multiple Answers)

Which two data types can be converted to LOBs using an ALTER TABLE…MODIFY command? (Choose two.)

  1. RAW
  2. LONG
  3. VARCHAR
  4. LONG RAW
Question 10 Multiple Choice (Single Answer)

ALTER TABLE inventory ENABLE CONSTRAINT inventory_id_pk; Which statement is true?

  1. The statement will achieve the desired results
  2. The statement will execute, but will NOT enable the PRIMARY KEY constraint.
  3. The statement will execute, but will NOT verify that values in the ID column do NOT violate the constraint.
  4. The statement will return a syntax error.
Question 11 Multiple Choice (Multiple Answers)

Which three functions can be used to manipulate character, number, or date column values? (Choose three.)

  1. CONCAT
  2. ROUND
  3. TRUNC
  4. RPAD
  5. INSTR
Question 12 Multiple Choice (Multiple Answers)

Which two statements are true about constraints? (Choose two.)

  1. The UNIQUE constraint does not permit a null value for the column.
  2. A UNIQUE index gets created for columns with PRIMARY KEY and UNIQUE constraints.
  3. The PRIMARY KEY and FOREIGN KEY constraints create a UNIQUE index
  4. The NOT NULL constraint ensures that null values are not permitted for the column
Question 13 Multiple Choice (Multiple Answers)

Which three are true? (Choose three.)

  1. A MERGE statement is used to merge the data of one table with data from another.
  2. A MERGE statement replaces the data of one table with that of another.
  3. A MERGE statement can be used to insert new rows into a table.
  4. A MERGE statement can be used to update existing rows in a table.
Question 14 Multiple Choice (Single Answer)

Which statement describes the ROWID data type?

  1. binary data up to 4 gigabytes
  2. character data up to 4 gigabytes
  3. raw binary data of variable length up to 2 gigabytes
  4. binary data stored in an external file, up to 4 gigabytes
  5. a hexadecimal string representing the unique address of a row in its table
Question 15 Multiple Choice (Single Answer)

Which is a valid CREATE TABLE statement?

  1. CREATE TABLE EMP9$# AS (empid number(2));
  2. CREATE TABLE EMP*123 AS (empid number(2));
  3. CREATE TABLE PACKAGE AS (packid number(2));
  4. CREATE TABLE 1EMP_TEST AS (empid number(2));
Question 16 Multiple Choice (Multiple Answers)

Which three are true regarding the use of outer joins? (Choose three.)

  1. You cannot use IN operator in a condition that involves an outer join
  2. You use (+) on both sides of the WHERE condition to perform an outer join
  3. You use (*) on both sides of the WHERE condition to perform an outer join
  4. You use an outer join to see only the rows that do not meet the join condition
  5. In the WHERE condition, you use (+) following the name of the column in the table without matching rows, to perform an outer join
  6. You cannot link a condition that is involved in an outer join to another condition by using the OR operator.
Question 17 Multiple Choice (Single Answer)

Which constraint can be defined only at the column level?

  1. UNIQUE
  2. NOT NULL
  3. CHECK
  4. PRIMARY KEY
Question 18 Multiple Choice (Single Answer)

Which best describes an inline view?

  1. a schema object
  2. a subquery that can contain an ORDER BY clause
  3. another name for a view that contains group functions
  4. a subquery that is part of the FROM clause of another query
Question 19 Multiple Choice (Single Answer)

JSON stands for:

  1. JVM Object Noation
  2. Javascript Oreinted Notation
  3. JavaScript Object Notation
  4. Java Object Novation
Question 20 Multiple Choice (Single Answer)

JSON is rival of which technology:

  1. HTML
  2. XML
  3. DHTML
  4. SAOP