Smart Future Point

PL/SQL MCQ

1. What does PL/SQL stand for?


2. Which of the following is NOT a PL/SQL unit?


3. Which of the following is a valid PL/SQL data type?


4. What is the default mode of a parameter in a PL/SQL procedure?


5. What is the purpose of %TYPE in PL/SQL?


6. Which SQL statement is used to execute a stored procedure in PL/SQL?


7. Which section of a PL/SQL block is optional?


8. What is a trigger in PL/SQL?


9. How do you handle exceptions in PL/SQL?


10. Which of the following is a valid loop in PL/SQL?


11. Which keyword is used to exit a loop in PL/SQL?


12. What is the function of a cursor in PL/SQL?


13. What is the difference between an implicit and an explicit cursor?


14. Which keyword is used to assign values to variables in PL/SQL?


15. What is the use of the RAISE statement in PL/SQL?


16. What is a package in PL/SQL?


17. What does the pragma AUTONOMOUS_TRANSACTION do in PL/SQL?


18. How can you check if a cursor has fetched any rows?


19. What is the default value of an uninitialized variable in PL/SQL?


20. How do you terminate a stored procedure in PL/SQL?


21. What is a trigger in PL/SQL?


22. Which keyword is used to declare a constant in PL/SQL?


23. What is the purpose of the %TYPE attribute in PL/SQL?


24. What is a cursor in PL/SQL?


25. What does the %ROWTYPE attribute do in PL/SQL?


26. Which of the following is used to handle exceptions in PL/SQL?


27. What is the scope of a variable declared in a PL/SQL block?


28. Which section of PL/SQL is mandatory in a block?


29. What is the correct order of a PL/SQL block?


30. What is the purpose of the RETURN statement in PL/SQL functions?


31. What is a trigger in PL/SQL?


32. What is the purpose of the RAISE statement in PL/SQL?


33. Which keyword is used to define a constant in PL/SQL?


34. Which SQL command is used inside PL/SQL to assign a value from a query?


35. What is the use of %TYPE in PL/SQL?


36. Which of the following is true about nested blocks in PL/SQL?


37. What is the default mode of parameters in PL/SQL procedures?


38. What happens if no exception is handled in a PL/SQL block?


39. Which is a user-defined exception in PL/SQL?


40. Which PL/SQL keyword is used to declare a record?


41. Which cursor is automatically created by Oracle for DML operations?


42. Which attribute returns the number of rows affected by a DML statement?


43. What does the %FOUND attribute return?


44. Which section in PL/SQL is optional?


45. Which one is NOT a valid loop in PL/SQL?


46. Which of the following is a composite data type in PL/SQL?


47. What does the NO_DATA_FOUND exception indicate?


48. How do you exit a loop in PL/SQL?


49. Which clause is used in PL/SQL function to return a value?


50. What does the %ISOPEN attribute check in PL/SQL?


PL/SQL Short Questions

1. What is PL/SQL?

2. What are the main features of PL/SQL?

3. What is the difference between SQL and PL/SQL?

4. What are PL/SQL blocks?

5. What is a cursor in PL/SQL?

6. What is the difference between an implicit and explicit cursor?

7. What are stored procedures in PL/SQL?

8. What are triggers in PL/SQL?

9. What is exception handling in PL/SQL?

10. What is the difference between %TYPE and %ROWTYPE in PL/SQL?

11. What is the use of the COMMIT statement in PL/SQL?

12. What is the use of the ROLLBACK statement in PL/SQL?

13. What is the purpose of the SAVEPOINT statement in PL/SQL?

14. What is the function of the EXCEPTION section in PL/SQL?

15. How do you handle exceptions in PL/SQL?

16. What is the purpose of the WHEN OTHERS clause in exception handling?

17. What is a cursor in PL/SQL?

18. What is the difference between an implicit cursor and an explicit cursor?

19. What is the default value of an uninitialized variable in PL/SQL?

20. How do you terminate a stored procedure in PL/SQL?

21. How do you declare a constant in PL/SQL?

22. How do you declare a variable in PL/SQL?

23. What are the different types of exceptions in PL/SQL?

24. What is the use of the SQLERRM function in PL/SQL?

25. What is a RECORD type in PL/SQL?

26. How do you use a FOR loop in PL/SQL?

27. How do you use a WHILE loop in PL/SQL?

28. How do you create a procedure in PL/SQL?

29. What is the difference between a function and a procedure in PL/SQL?

30. How do you call a procedure in PL/SQL?

31. How do you call a function in PL/SQL?

32. What is the purpose of the %ROWTYPE attribute in PL/SQL?

33. How do you declare and use a cursor in PL/SQL?

34. What is the difference between an implicit and explicit cursor in PL/SQL?

35. How do you use a cursor FOR loop in PL/SQL?

36. How do you pass parameters to a PL/SQL procedure?

37. What is the difference between IN, OUT, and INOUT parameters in PL/SQL?

38. What is the significance of the %FOUND attribute in PL/SQL?

39. What is the significance of the %NOTFOUND attribute in PL/SQL?

40. What is the significance of the %ROWCOUNT attribute in PL/SQL?

41. What are the different types of cursors in PL/SQL?

42. How do you handle multiple exceptions in a PL/SQL block?

43. What is the difference between a procedure and a function in PL/SQL?

44. How do you perform exception handling using a user-defined exception?

45. What is a trigger in PL/SQL?

46. What are the different types of triggers in PL/SQL?

47. What is the purpose of the FOR EACH ROW clause in a trigger?

48. What is the difference between BEFORE and AFTER triggers in PL/SQL?

49. What is the purpose of the EXECUTE IMMEDIATE statement in PL/SQL?

50. What is a package in PL/SQL?

Coumputer Course

Popular Courses

(123)
Web Development
(123)
FULL STACK JAVA
PROGRAMING
(123)
PYTHON PROGRAMING
smartfuturepoint