PrepAway - Latest Free Exam Questions & Answers

Why does this scrip not execute properly?

Consider the following script:
<%
Function getFilePath()
Dim lsPath, arPath IsPath = Request.ServerVariables(“SCRIPT_NAME”)
arPath = Split(lsPath, “/”)
arPath(UBound(arPath, 1)) = “”
GetFilePath = Join(arPath, “/”)
End Function
%>
Why does this scrip not execute properly?

PrepAway - Latest Free Exam Questions & Answers

A.
The Private keyword should be used instead of Dim.

B.
The variable lsPath is declared and defined on the same line.

C.
The Public keyword should be used instead of Dim.

D.
The Dim keyword is not used properly.


Leave a Reply