What are LOCAL and GLOBAL variables?



What are LOCAL and GLOBAL variables?..

Answer / guest

Local variables lifetime ends when the Procedure ends.
Global variables lifetime begins at the start of the script
and ends at the end of the script and it can be used by any
procedure within the script. Declaring a variable by using
the keyword PRIVATE makes the variable global within the
script, but if declared using PUBLIC, then all scripts can
refer the variable.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP Interview Questions

What is an err object?

0 Answers  


Explain the post and get method or explain the difference between them?

0 Answers  


What is aspx used for?

0 Answers  


What are server variables collection?

0 Answers  


How to run FileSystemObject in ASP

1 Answers   Karvy,






difference between html and asp?

0 Answers   Polycom,


Explain the order of precedence for logical operators.

0 Answers  


Give an example of how using an HttpHandler could simplify an existing design that serves Check Images from an .aspx page.

0 Answers   TCS,


How add insert options in datagrid control in footer row.

0 Answers   PreludeSys,


How to convert a string into an integer in .net?

0 Answers  


i learnt .net and would like to know if there is any institute in hyderabad that gives real time knowledge.i worked on testing and planning to move on to .net putting same amount of experience in .net.kindly suggest me the institute and other details.

0 Answers  


What are the function of attributes of the <form> tags?

0 Answers  


Categories