Pass the Oracle Oracle PL 1z0-071 Questions and answers with CertsForce

Viewing page 1 out of 10 pages
Viewing questions 1-10 out of questions
Questions # 1:

Which three statements are true about single row functions?

Options:

A.

They can be used only in the where clause of a select statement.


B.

They can accept only one argument.


C.

They return a single result row per table.


D.

The argument can be a column name, variable, literal or an expression.


E.

They can be nested to any level.


F.

The date type returned can be different from the data type of the argument.


Questions # 2:

View the Exhibit and examine the structure of the ORDERS table.

The columns ORDER_MODE and ORDER TOTAL have the default values'direct “and respectively.

Which two INSERT statements are valid? (Choose two.)

Options:

A.

INSERT INTO (SELECT order_id, order date, customer_id FROM orders) VALUES (1, ‘09-mar-2007“,101);


B.

INSERT INTO orders (order_id, order_date, order mode,customer_id, order_total) VALUES (1, TO_DATE (NULL),‘online‘,101, NULL) ;


C.

INSERT INTO orders VALUES (1, ‘09-mar-2007’, ‘online’,’ ’,1000);


D.

INSERT INTO orders (order id, order_date, order mode, order_total)VALUES (1,‘10-mar-2007’,’online’, 1000)


E.

INSERT INTO orders VALUES(‘09-mar-2007’,DEFAULT,101, DEFALLT);


Questions # 3:

Which three are true?

Options:

A.

LAST_DAY returns the date of the last day of the current ,month onlyu.


B.

CEIL requires an argument which is a numeric data type.


C.

ADD_MONTHS adds a number of calendar months to a date.


D.

ADD_MONTHS works with a character string that can be implicitlyt converted to a DATE data type.


E.

LAST_DAY return the date of the last day the previous month only.


F.

CEIL returns the largest integer less than or equal to a specified number.


G.

LAST_DAY returns the date of the last day of the month for the date argument passed to the function.


Questions # 4:

Which three statements are true?

Options:

A.

A customer can exist in many countries.


B.

The statement will fail if a row already exists in the SALES table for product 23.


C.

The statement will fail because subquery may not be I contained in a values clause.


D.

The SALES table has five foreign keys.


E.

The statement will execute successfully and a new row will be inserted into the SALES table.


F.

A product can have a different unit price at different times.


Questions # 5:

Examine the description of the PRODUCT_ STATUS table:

Question # 5

The STATUS column contains the values IN STOCK or OUT OF STocK for each row.

Which two queries will execute successfully?

Options:

A.

SELECT prod_id ||q’(‘ s not available)’ ‘CURRENT AVAILABILITY’ FROM

product_ status WHERE status = ‘OUT OF STOCK’


B.

SELECT prod_id ||q”‘ s not available” FROM

product_ status WHERE status = ‘OUT OF STOCK’;


C.

SELECT PROD_ID||q’(‘s not available)’ FROM

product_ status WHERE status = ‘OUT OF STOCK’;


D.

SELECT PROD_ID||q’(‘s not available)’ “CURRENT AVAILABILITY”

FROM product_ status WHERE status = ‘OUT OF STOCK’;


E.

SELECT prod_id q’s not available” from product_ status WHERE status = ‘OUT OF STOCK’;


F.

SELECT prod_id “CURRENT AVAILABILITY”||q’ (‘s not available)’ from product_ status WHERE status

= ‘OUT OF STOCK’;


Questions # 6:

Which two are true about the WITH GRANT OPTION clause?

Options:

A.

The grantee can grant the object privilege to any user in the database, with of without including this option.


B.

The grantee must have the GRANT ANY OBJECT PRIVILEGE system prvilege to use this option.


C.

It can be used when granting privileges to roles.


D.

It can be used for system and object privileges.


E.

It cannot be used to pass on privileges to PUBLIC by the grantee.


F.

It can be used to pass on privileges to other users by the grantee.


Questions # 7:

The SYSDATE function displays the current Oracle Server date as:

21 -MAY-19

You wish to display the date as:

MONDAY, 21 MAY, 201 9

Which statement will do this?

Options:

A.

SELECT TO _ CHAR (SYSDATE, ' FMDAY, DD MONTH, YYYY') FROM DUAL;


B.

SELECT TO _ DATE (SYSDATE, ' FMDAY, DD MONTH, YYYY') FROM DUAL;


C.

SELECT TO_ CHAR (SYSDATE, ' FMDD, DAY MONTH, YYYY') FROM DUAL;


D.

SELECT TO_ CHAR (SYSDATE, ' FMDAY, DDTH MONTH, YYYY') FROM DUAL;


Questions # 8:

The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type DATE

You want to display the date of the first Monday after the completion of six months since hiring.

The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day of the week Which query can be used?

Options:

A.

SELECT emp_id,NEXT_DAY(ADD_MONTHS(hite_date,6),'MONDAY') FROM employees;


B.

SELECT emp_id,ADD_MONTHS(hire_date,6), NEXT_DAY('MONDAY') FROM employees;


C.

SELECT emp_id,NEXT_DAY(MONTHS_BETWEEN(hire_date,SYSDATE),6) FROM employees;


D.

SELECT emp_id,NEXT_DAY(ADD_MONTHS(hire_date,6),1) FROM employees;


Questions # 9:

Which three statements are true regarding single row subqueries?

Options:

A.

They must be placed on the left side of the comparison operator or condition.


B.

They must return a row to prevent errors in the SQL statement.


C.

A SQL statement may have multiple single row subquery blocks.


D.

They can be used in the HAVING clause.


E.

They must be placed on the right side of the comparison operator or condition.


F.

They can be used in the clause.


Questions # 10:

Which two are true about granting privilege on objects?

Options:

A.

The owner of an object acquires all object privilege on that object by default.


B.

The WITH GRANT OPTION clause can be used only by DBA users.


C.

A table owner must grant the references privilege to allow other users to create FOREIGN KEY constraints using that table.


D.

An object privilege can be granted to a role only by the owner of that object.


E.

An object privilege can be granted to other users only by the owner of object.


Viewing page 1 out of 10 pages
Viewing questions 1-10 out of questions