MCQ King
Oracle – Oracle/PLSQL Functions
1 / 25
1. What is the primary purpose of a PL/SQL function?
2 / 25
2. Which keyword is used to define a PL/SQL function?
3 / 25
3. In PL/SQL, what type of values can a function return?
4 / 25
4. What is the correct syntax for defining a PL/SQL function?
5 / 25
5. What is the purpose of the RETURN statement in a PL/SQL function?
6 / 25
6. In PL/SQL, can a function have input parameters?
7 / 25
7. Which data types are valid return types for PL/SQL functions?
8 / 25
8. What keyword is used to declare input parameters in a PL/SQL function header?
9 / 25
9. What happens when you call a PL/SQL function without assigning its result to a variable?
10 / 25
10. In PL/SQL, what is the primary difference between a function and a procedure?
11 / 25
11. Which of the following is a valid way to call a PL/SQL function in SQL?
12 / 25
12. In PL/SQL, can a function call another function?
13 / 25
13. What is the purpose of the DETERMINISTIC keyword in a PL/SQL function?
14 / 25
14. Which keyword is used to define the data type of a function’s return value?
15 / 25
15. What is the maximum number of parameters that a PL/SQL function can have?
16 / 25
16. In PL/SQL, can a function modify the database?
17 / 25
17. What is the primary use of the NOCOPY parameter mode in PL/SQL functions?
18 / 25
18. What is the purpose of the AGGREGATE keyword in PL/SQL functions?
19 / 25
19. Which of the following is a built-in PL/SQL function used for string concatenation?
20 / 25
20. In PL/SQL, which function is used to find the square root of a number?
21 / 25
21. What is the purpose of the LEAST function in PL/SQL?
22 / 25
22. Which PL/SQL function is used to extract a substring from a string?
23 / 25
23. In PL/SQL, what does the NVL function do?
24 / 25
24. What is the primary purpose of the TO_DATE function in PL/SQL?
25 / 25
25. Which PL/SQL function is used to round a numeric value to a specified number of decimal places?
Your score is
Restart quiz