Oracle – I/O and PL/SQL MCQ

Oracle – I/O and PL/SQL

1 / 25

1. How can you enable DBMS_OUTPUT for displaying information in PL/SQL?

2 / 25

2. What is the primary purpose of the UTL_FILE_DIR parameter in Oracle?

3 / 25

3. To work with files in PL/SQL, what must you do before using UTL_FILE functions?

4 / 25

4. Which operation is used to check if a file is already open in PL/SQL using UTL_FILE?

5 / 25

5. What is the primary function of the UTL_FILE.FOPEN procedure in PL/SQL?

6 / 25

6. Which procedure is used to close an open file in PL/SQL when working with UTL_FILE?

7 / 25

7. What does the UTL_FILE.FCLOSE procedure do in PL/SQL?

8 / 25

8. How can you read data from a file in PL/SQL using UTL_FILE?

9 / 25

9. What operation does the UTL_FILE.FWRITE procedure perform in PL/SQL?

10 / 25

10. What is the primary purpose of the UTL_FILE.FCOPY procedure in PL/SQL?

11 / 25

11. What operation does the UTL_FILE.FREMOVE procedure perform in PL/SQL?

12 / 25

12. What is the primary function of the UTL_FILE.FRENAME procedure in PL/SQL?

13 / 25

13. How can you retrieve file attributes in PL/SQL using UTL_FILE?

14 / 25

14. Which package in PL/SQL is used for sending email?

15 / 25

15. What is a prerequisite for sending email in Oracle?

16 / 25

16. What is one method to send a plain-text message of arbitrary length in PL/SQL email?

17 / 25

17. How can you send a message with a short (32,767 bytes or less) attachment via PL/SQL email?

18 / 25

18. What is the primary purpose of the UTL_HTTP package in PL/SQL?

19 / 25

19. How can you retrieve a web page into a LOB in PL/SQL using UTL_HTTP?

20 / 25

20. What does the UTL_HTTP.AUTHENTICATE procedure in PL/SQL allow you to do?

21 / 25

21. What protocol is used for retrieving an SSL-encrypted web page (via HTTPS) in PL/SQL using UTL_HTTP?

22 / 25

22. What is the primary purpose of the UTL_HTTP.SET_WALLET procedure in PL/SQL?

23 / 25

23. How can you retrieve data from an FTP server in PL/SQL using UTL_TCP?

24 / 25

24. Which operation does the UTL_TCP.SET_PROXY procedure perform in PL/SQL?

25 / 25

25. What types of I/O are available in PL/SQL beyond file operations and email?

Your score is

0%