Search Header Logo

Oracle PL/SQL Quiz

Authored by ĐẠT THÀNH

Other

12th Grade

Used 4+ times

Oracle PL/SQL Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

Syntax error

200

200

100

100

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code snippet when performed on the EMPLOYEE table below?

Error

Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

To produce a stored function, which statement is used?

PRODUCE FUNCTION

CREATE FUNCTION

PRODUCE PROCEDURE

CREATE PROCEDURE

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

What will happen when we execute on the table below?

Error

Price of mango = 25

Price of mango = 10

Price of mango = 50

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How to call a stored procedure? For example: function1 (param1, param2)

SELECT function1 (param1, param2) FROM DUAL;

SELECT * FROM table1 WHERE attr1 = funtion 1 (param1, param2);

EXECUTE function1 (param1, param2);

UPDATE table1 SET attr1 = function1 (param1, param2) WHERE attr2 = value2;

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

You wish to define a procedure that accepts an incoming number, an incoming date, and a date that is brought in and returned after making changes to it if needed. In addition, a number is returned that is set by the procedure. Which code snippet best satisfies these requirements?

CREATE PROCEDURE test (p1 IN number, p2 IN date, p3 OUT date, p4 OUT number) AS....

CREATE PROCEDURE test (p1 OUT number, p2 INOUT date, p3 IN date, p4 IN number) AS....

CREATE PROCEDURE test (p1 INOUT number, p2 INOUT date, p3 IN date, p4 IN number) AS....

CREATE PROCEDURE test (p1 IN number, p2 INOUT date, p3 IN date, p4 IN number) AS....

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. A stored procedure is

A sequence of PL/SQL statements to perform specific operations.

Stored in compiled form in the database.

A stored function but without a return value.

All of the above.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?