Suppose the variable myName is declared in a Dim statement in two different Sub procedures. Which statement is true?

Question:Suppose the variable myName is declared in a Dim statement in two different Sub procedures. Which statement is true?

1.The program will malfunction when it is executed.

2. When the value of myName is changed in one Sub procedure, it will also be changed in the other Sub procedure.

3.Visual Basic’s smart editor will alert you that this is an error before the program is executed.

4.The two variables will be local to their respective Sub procedures.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!