Which line in the above code would result in errors upon execution?

Examine the following block of code:
(Exhibit)

Which line in the above code would result in errors upon execution?

Examine the following block of code:

Which line in the above code would result in errors upon execution?

A.
line 5

B.
line 8

C.
line 2

D.
line 7



Leave a Reply 8

Your email address will not be published. Required fields are marked *


erita

erita

it should be D, isn’t it? because done’s variable type is boolean and it’s assigned with number

P0

P0

Erita, it’s B.

D is wrong. (net_value > 100) is TRUE, and TRUE is assigned to done variable.

s.l.

s.l.

boolean supported in PL/SQL, not SQL

Heena

Heena

correct answer is B

It will give error… expression is of wrong type.

ali

ali

B is correct , because
in D can use condition in assign variable but can’t in return like in function
in B can’t assign data type with another data type (varchar2 := boolean)

thanks for all