Multiple choice technology databases

Begin Dbms_output.put_line(‘Hello world’) End; What is the error in the above block?

  1. There is no error in the statement

  2. Exception handler is missing

  3. DBMS_OUTPUT.PUT_LINE package must be declared

  4. semicolon is missing in the line "Dbms_output.put_line(‘Hello world’)"

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In PL/SQL each statement must end with a semicolon. The line Dbms_output.put_line('Hello world') lacks this terminating semicolon, causing a compilation error. The stored answer correctly identifies this omission.