Solved

Which of the Following Will Happen If You Declare a Variable

Question 19

Multiple Choice

Which of the following will happen if you declare a variable named message after the if statement instead of before it?


A) The scope of message extends from its declaration only until the end of the true block.
B) The scope of message extends from its declaration only until the end of the false block.
C) The scope of message extends from the point where it is declared to the end of the program.
D) The location of the message variable does not affect the output.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions