Which statement is true about the execution of the above code?

Examine the following code:

Which statement is true about the execution of the above code?

Examine the following code:

Which statement is true about the execution of the above code?

A.
It executes and displays null.

B.
It executes and the condition returns true.

C.
It executes and control goes to the else statement.

D.
It fails because no value is assigned to the v_myage variable.

Explanation:



Leave a Reply 5

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


vishesh bansal

vishesh bansal

c is the correct answer since v_myage is null, so if condition is nullified and program will go to else statement.

samkelo siyabonga ngubo

samkelo siyabonga ngubo

C