PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 1D0-430

Exam 1D0-430: CIW Application Developer

What is wrong with this VBScript code?

Consider the following VBScript code:
<P><FONT COLOR=”crimson” FACE=”Arial” SIZE=”4″ >Hi </FONT></P>
<SCRIPT>
<!-coloredfront.style.color = “ourcolor”
–>
</SCRIPT>
<SCRIPT TYPE=”text/vbscript”>
Sub coloredfont_onmouseover ()
coloredfont.style.color =”Green”
Sub
Sub coloredfont_onmouseou ()
coloredfont.style.color = “crimson”
END Sub
</SCRIPT>
What is wrong with this VBScript code?

Which one of the following corrections needs to be made?

Consider the following script:
<SCRIPT LANGUAGE=VBScript RUNAT = (SERVER)>
Function FileLastMod()
Dim loFs, lsFile, lsPath, loFilem, ldLast

Set loFs = Server.CreateObject(“Scripting.FileSystemObject”)
lsFile = Request.ServerVariables(“SCRIPT_NAME”)
lsPath = Server.MapPath(lsFile)
Set loFile = loFs.GetFile(lsPath)
ldLast = loFile.DateLastModified
Set loFile = Nothing
Set loFs = Nothing
FileLastMod = CStr(FormatDateTime(ldLast, 2))
End Function
</SCRIPT>
Which one of the following corrections needs to be made?


Page 5 of 14« First...34567...10...Last »