PL SQL Practice Test 7
In a stored procedure, when specifying a string parameter should use which of these ?
- Char
- varchar2
- TEXT
- REAL
Ans : 2
A Stored Procedure is a
- Sequence of SQL or PL/SQL statements to perform specific function
- Stored in compiled form in the database
- Can be called from all client environments
- All of the above
Ans : 4
Which of the following is true ,Creating a procedure have compile errors.?
- The line numbers reported match the line numbers you see in your text editor.
- SQL*Plus will automatically show the errors to you.
- To see the errors, enter SHOW ERRORS in SQL*Plus.
- If there are no syntax errors, you will receive the message “NO ERRORS.”
Ans : 3
Which of the following are the advantages of PL/SQL Packages?
- Modularity
- Easier Application Design
- Information Hiding
- All the above
Ans : 4
A package will have which of these mandatory parts?
- Package specification
- Package body or definition
- Both A & B
- None of the above
Ans : 3
Attend Free Demo and Learn SQL SERVER ONLINE TRAINING by Real-Time Expert
You can pass parameters to procedures or functions in a package.
- True
- False
- Depends upon
- None of the above
Ans : 1
Which package lets PL/SQL programs read and write (OS) text files?
- UTL_FILE
- DBMS_TEXT
- UTL_HTTP
- UTL_SMTP
Ans : 1
Which of the following is not a schema object?
- Packages
- Indexes
- Public Synonyms
- Triggers
Ans : 3
In the PL/SQL, the package specification contains ………………….. declarations.
- Public
- Private
- Friend
- Protected
Ans : 1
Is it possible to open a cursor which is in a Package in another procedure ?
- Yes
- No
- May or may not possible
- None of the above
Ans : 1
Attend Free Demo and Learn SQL SERVER ONLINE TRAINING by Real-Time Expert
Which of the following is true about PL/SQL package body?
- The package body has methods declared in package specification and private.
- It is created using the CREATE PACKAGE Statement.
- Methods and types declared in package body are not hidden from code outside
- All of the above.
Ans :1
All objects placed in a package specification are called
- Public objects.
- Private objects.
- None of the above.
- Both of the above.
Ans : 1
Which of the following syntax will be used to access a package element?
- package_name element_name;
- package_name;
- element_name;
- None of the above.
Ans : 3
Which of the following is not a PL/SQL unit?
- Table
- Type
- Trigger
- Package
Ans : 1
Which of the following is not true about PL/SQL package specifications?
- The specification is the interface to the package.
- It declares the types, variables, subprograms that can be referenced from outside
- Contains all information about the content of the package and the
- None of the above.
Ans : 3
Attend Free Demo and Learn SQL SERVER ONLINE TRAINING by Real-Time Expert
Any subprogram not in the package specification but coded in the package body is called a
- Public object.
- Private object.
- None of the above.
- Both of the above.
Ans : 2
Which is a database object that groups logically related PL/SQL types, objects ,subprograms.
- Module
- Package
- Body
- Name
Ans : 2
What can you do with the DBMS_LOB package?
- Use the DBMS_LOB.WRITE procedure to write data to a BFILE.
- Use the DBMS_LOB.BFILENAME function to locate an external BFILE.
- Use the DBMS_LOB.FILEEXISTS function to find the location of a BFILE.
- Use the DBMS_LOB.FILECLOSE procedure to close the file being accessed.
Ans : 4
Which Oracle supply package allows you to run jobs at use defined times?
- DBMS_JOB
- DBMS_RUN
- DBMS_PIPE
- DBMS_SQL
Ans : 1
How do you implement cannot drop a table from a stored procedure.
- Use the DROP command in the procedure to drop the table.
- Use the DBMS_DDL packaged routines in the procedure to drop the table.
- Use the DBMS_SQL packaged routines in the procedure to drop the table.
- Use the DBMS_DROP packaged routines in the procedure to drop the table.
Ans : 4
Attend Free Demo and Learn SQL SERVER ONLINE TRAINING by Real-Time Expert
Which programming constructs can be grouped within a package?
- Cursor
- Constant
- Trigger
- Cursor and Constant
Ans : 4
Which Oracle s package is used to enable HTTP callouts from PL/SQL?
- DBMS_DDL
- UTL_HTTP
- UTL_SMTP
- UTL_URL
Ans : 2
Which procedure of the dbms_output package append text to the current line of output ?
Ans : 4
Attend Free Demo and Learn SQL SERVER ONLINE TRAINING by Real-Time Expert
Read More PL/SQL Objective Questions and Answers