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 differance b/w .net assemblies and com component?

3 Answers  


what is n tier ?

1 Answers   eSoft, Government,


how to connect asp with sql server.......? Write some code for connectivity between sql server and ASP...

2 Answers  


how to create overlay on div ?

0 Answers  


What purpose is served by the Application.Lock method? A. It locks the Application object, preventing other clients from altering any values in the Contents collection. B. It locks the application, preventing the server from responding to any requests for application documents. C. It locks the application, preventing non-SSL requests from being processed. D. It locks the Application object, preventing other clients from reading any values in the Content collection. E. It locks other clients from reading the Contents collection.

1 Answers  






What's the Difference between DSN and DSN Less connection?

3 Answers  


Which is better asp or php?

0 Answers  


How are sessions maintained? A. The browser sends a cookie to the server with each request. B. The browser sends a Querystring variable to the server with each request. C. The browser sends a hidden Form variable to the server with each request. D. The browser sends a long variable to the server in the BODY of each request. E. None of the above.

1 Answers  


What is the common type system (cts)?

0 Answers  


What are private assemblies and shared assemblies?

0 Answers  


what is the role of attributes properties in asp field object

0 Answers  


What are the methods in Application Object?

2 Answers  


Categories