You are on page 1of 3

1. Which clause could you use to limit the price value to 100.00 or less?

Ans:

2. in which case you would you use a full outer Join.


Ans: You want all unmatched data from both tables

3. Which are true statement about dependent object.


Ans: Invalid objects can not be described, The Oracle server automatically records
dependencies among objects, You can view whether an object is valid or invalid in the
USER_STATUS data dictionary view

4. The fflush procedure is used to


Ans: Flush unwritten data to a file, FFLUSH physically writes pending data to the file
identified by the file handle,writes all data buffered in memory to a file.

5. Non predefined exception are handled by


Ans: PRAGMA EXCEPTION_INIT

6. Which is true regarding cursor


Ans: A cursor is a pointer to the private memory.

7. What are the possible value of index wise table data type
Ans: BINARY_INTEGER

8. Which one program declaration arte correct for a stored program unit.
Ans: CREATE OR REPLACE FUNCTION tax_amt (p_id NUMBER) RETURN NUMBER, CREATE OR
REPLACE PROCEDURE tax_amt (p_id NUMBER, p_amount OUT NUMBER)

9. Which is an sql * plus command

Ans:

ACCEPT - Accept a value from the user and place it into a variable

 APPEND - Add text to the end of the current line of the SQL statement in the buffer
 AUTOTRACE - Trace the execution plan of the SQL statement and gather statistics
 BREAK - Set the formatting behavior for the output of SQL statements
 BTITLE - Place a title on the bottom of each page in the printout from a SQL statement
 CHANGE - Replace text on the current line of the SQL statement with new text
 CLEAR - Clear the buffer
 COLUMN - Change the appearance of an output column from a query
 COMPUTE - Does calculations on rows returned from a SQL statement
 CONNECT - Connect to another Oracle database or to the same Oracle database under a
different user name
 COPY - Copy data from one table to another in the same or different databases
 DEL - Delete the current line in the buffer
 DESCRIBE - List the columns with datatypes of a table
 EDIT - Edit the current SQL statement in the buffer using an external editor such
as vi or emacs
 EXIT - Exit the SQL*Plus program
 GET - Load a SQL statement into the buffer but do not execute it
 HELP - Obtain help for a SQL*Plus command (In some installations)
 HOST - Drop to the operating system shell
 INPUT - Add one or more lines to the SQL statement in the buffer
 LIST - List the current SQL statement in the buffer
 QUIT - Exit the SQL*Plus program
 REMARK - Place a comment following the REMARK keyword
 RUN - Execute the current SQL statement in the buffer
 SAVE - Save the current SQL statement to a script file
 SET - Set a variable to a new value
 SHOW - Show the current value of a variable
 SPOOL - Send the output from a SQL statement to a file
 START - Load a SQL statement located in a script file and then run that SQL statement
 TIMING - Used to time the execution of SQL statements for performance analysis
 TTITLE - Place a title on the top of each page in the printout from a SQL statement
 UNDEFINE - Delete a user defined variable

10. Which of the below is not a type of pl sql block


Ans: Anonymous block

11. Non predefined exception are raised in


Ans: Declarative section

12. Identify valid and invalid variable declaration and initialization


Ans: Number_of_copies PLS_INTEFER; Valid
b. PRINTER_NAME constant VARCHAR2(10); Invalid
c. Deliver_to VARCHAR2(10):=Johnson; Invalid
d. By_when DATE:=CURRENT_DATE+1; Valid

13. What is true about the with grant option clause


Ans: It can be used for system and object privileges, It can be used to pass on
privileges to other users by the grantee.

14. Which is not an implicit cursor attribute


Ans: %rowtype, From SYS dual
Note: Implicit cursor attributes are: SQL%NOTFOUND,SQL%FOUND,SQL%ROWCOUNT

15. Which one programming construct can be grouped within a package


Ans: Cursor,Constant

16. Which is valid way to minimize dependency failure


Ans: Querying with the SELECT * notification., Declaring variables with the %TYPE
attribute, Declaring records by using the %ROWTYPE attribute.

17. SMTP_OUT_SERVER parameter can be configured in which level- Ans: system,session


18. The ADD_PLAYER, UPD_PLAYER_STAT, AND UPD_PITCHER_STAT procedure are grouped
together in a package. A variable must be shared among only these procedures. Where
should you declare these variable.
Ans: In the package body

19. What is true regarding the statement. Every PL SQL block must end with END Statement
Ans: true

20. When creating a function in sql *plus , You received this message warning function created
with compilation error which command can you isuue to see the actual error message.
Ans: SHOW ERRORS

21. Which option describe a stored procedure.


Ans: a group of statements with a specific name

You might also like