Oracle DB MCQ Quiz Hub

Oracle DB Mcq Question Set 5

Choose a topic to test your knowledge and improve your Oracle DB skills

You plan to use static database registration for a new listener when you create it. What could be the two reasons for this? (Choose two.)





✅ Correct Answer: 3

Which three pieces of information are to be mandatorily provided while creating a new listener using Enterprise Manager Database Control? (Choose three.)





✅ Correct Answer: 1

You have been recently hired as a database administrator. Your senior manager asks you to study the production database server and submit a report on the settings done by the previous DBA. While observing the server settings, you find that the following parameter has been set in the parameter file of the database: REMOTE_OS_AUTHENT = TRUE What could have been the reason to set this parameter as TRUE?





✅ Correct Answer: 1

Which naming method uses the tnsnames.ora file to store the connect descriptor used by the client while connecting to the database instance from a remote machine?





✅ Correct Answer: 2

Your database is open and users are connected using the LISTENER listener. The new DBA of the system stops the listener by using the following command: LSNRCTL> STOP What would happen to the sessions that are presently connected to the database instance?





✅ Correct Answer: 2

You need to extract details of those products in the SALES table where the PROD_ID column contains the string '_D123'. Which WHERE clause could be used in the SELECT statement to get the required output?





✅ Correct Answer: 2

Which two statements are true regarding single row functions?





✅ Correct Answer: 4

Which SQL statements would display the value 1890.55 as $1,890.55?





✅ Correct Answer: 1

Which two statements are true regarding the USING and ON clauses in table joins?





✅ Correct Answer: 3

Which statement is true regarding the INTERSECT operator?





✅ Correct Answer: 4

You need to produce a report where each customer's credit limit has been incremented by $1000. In the output, t he customer's last name should have the heading Name and the incremented credit limit should be labeled New Credit Limit. The column headings should have only the first letter of each word in uppercase . Which statement would accomplish this requirement?





✅ Correct Answer: 3

Using the CUSTOMERS table, you need to generate a report that shows 50% of each credit amount in each income level. The report should NOT show any repeated credit amounts in each income level.Which query would give the required result?





✅ Correct Answer: 3

Evaluate the following query: SQL> SELECT promo_name q'{'s start date was }' promo_begin_date AS "Promotion Launches" FROM promotions; What would be the outcome of the above query?





✅ Correct Answer: 3

Examine the structure of the PROMOTIONS table: name Null Type PROMO_ID NOT NULL NUMBER(6) PROMO_NAME NOT NULL VARCHAR2(30) PROMO_CATEGORY NOT NULL VARCHAR2(30) PROMO_COST NOT NULL NUMBER(10,2) The management wants to see a report of unique promotion costs in each promotion category. Which query would achieve the required result?





✅ Correct Answer: 4

Evaluate the following query: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECOND FROM dual; What is the correct output of the above query?





✅ Correct Answer: 1

Which three statements are true regarding the data types in Oracle Database 10g/11g?





✅ Correct Answer: 1

What does the FORCE option for creating a view do?





✅ Correct Answer: 4

What are two reasons to create synonyms?





✅ Correct Answer: 4

In which three cases would you use the USING clause?





✅ Correct Answer: 4

A SELECT statement can be used to perform these three functions: 1. Choose rows from a table. 2. Choose columns from a table. 3. Bring together data that is stored in different tables by creating a link between them. Which set of keywords describes these capabilities?





✅ Correct Answer: 2

Evaluate this SQL statement: SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAME FROM EMPLOYEES e, DEPARTMENTS d WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID; In the statement, which capabilities of a SELECT statement are performed?





✅ Correct Answer: 1

Evaluate this SQL statement: SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales_amount * (.35 * e.bonus)) AS CALC_VALUE FROM employees e, sales s WHERE e.employee_id = s.emp_id; What will happen if you remove all the parentheses from the calculation?





✅ Correct Answer: 3

Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?





✅ Correct Answer: 2

Evaluate this SQL statement: SELECT ename, sal, 12*sal+100 FROM emp; The SAL column stores the monthly salary of the employee. Which change must be made to the above syntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"?





✅ Correct Answer: 2

The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL CUSTOMER_ADDRESS VARCHAR2(150) CUSTOMER_PHONE VARCHAR2(20) You need to produce output that states "Dear Customer customer_name, ". The customer_name data values come from the CUSTOMER_NAME column in the CUSTOMERS table. Which statement produces this output?





✅ Correct Answer: 4

Which two are attributes of iSQL*Plus?





✅ Correct Answer: 4

Which is an iSQL*Plus command?





✅ Correct Answer: 4

Which are iSQL*Plus commands?





✅ Correct Answer: 4

Which two statements are true about constraints?





✅ Correct Answer: 2

Which three statements correctly describe the functions and use of constraints?





✅ Correct Answer: 4

Which SQL statement defines a FOREIGN KEY constraint on the DEPTNO column of the EMP table?





✅ Correct Answer: 2

Which view should a user query to display the columns associated with the constraints on a table owned by the user?





✅ Correct Answer: 4

You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRADES table stores information about the student's grades. Both of the tables have a column named STUDENT_ID. The STUDENT_ID column in the STUDENTS table is a primary key. You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the foreign key?





✅ Correct Answer: 4

You need to load information about new customers from the NEW_CUST table into the tables CUST and CUST_SPECIAL. If a new customer has a credit limit greater than 10,000, then the details have to be inserted into CUST_SPECIAL. All new customer details have to be inserted into the CUST table. Which technique should be used to load the data most efficiently?





✅ Correct Answer: 3

Which three tasks can be performed using regular expression support in Oracle Database 10g?





✅ Correct Answer: 3

Evaluate the CREATE TABLE statement: CREATE TABLE products (product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY, product_name VARCHAR2(15)); Which statement is true regarding the PROD_ID_PK constraint?





✅ Correct Answer: 2

Which two statements are true?





✅ Correct Answer: 4

Which two statements are true regarding the execution of the correlated subqueries?





✅ Correct Answer: 4

OE and SCOTT are the users in the database. The ORDERS table is owned by OE. Evaluate the statements issued by the DBA in the following sequence: CREATE ROLE r1; GRANT SELECT, INSERT ON oe.orders TO r1; GRANT r1 TO scott; GRANT SELECT ON oe.orders TO scott; REVOKE SELECT ON oe.orders FROM scott; What would be the outcome after executing the statements?





✅ Correct Answer: 1

Evaluate the following SQL statement: ALTER TABLE hr.emp SET UNUSED (mgr_id); Which statement is true regarding the effect of the above SQL statement?





✅ Correct Answer: 2

EMPDET is an external table containing the columns EMPNO and ENAME. Which command would work in relation to the EMPDET table?





✅ Correct Answer: 3

In which scenario would you use the ROLLUP operator for expression or columns within a GROUP BY clause?





✅ Correct Answer: 3

What are the two subtypes of the IF conditional statement in PL/SQL?





✅ Correct Answer: 4

What are the two variables supported by PL/SQL?





✅ Correct Answer: 2

Oracle supports all of the following types of collections except for which one?





✅ Correct Answer: 2

Which of the following identifiers can include any printable characters, including spaces?





✅ Correct Answer: 1

Which of the following types of message output contains a chronological log of errors, initialization parameter settings, and administration operations, and also records values for overwritten control filerecords?





✅ Correct Answer: 2

Which of the following statements is used to insert, update, or delete bulk data?





✅ Correct Answer: 4

Which of the following exceptions is raised when a user tries to divide a number by zero?





✅ Correct Answer: 3

All of the following can be the causes of raising an exception except for which one?





✅ Correct Answer: 4