How should Ann rewrite the third line of code to correct the errors in that line?

Ann wrote the following ASP code:
<%

For i=0 to rs.Fields.Count -1
Response,Write(<td>)
S=Trim(cStr(rs,Fields (i).Name & ))
Response,Write(<b>” & S & “</b>)
Response,Write(</td>)
Next
%>
She is having difficulty debugging the program.
How should Ann rewrite the third line of code to correct the errors in that line?

Ann wrote the following ASP code:
<%

For i=0 to rs.Fields.Count -1
Response,Write(<td>)
S=Trim(cStr(rs,Fields (i).Name & ))
Response,Write(<b>” & S & “</b>)
Response,Write(</td>)
Next
%>
She is having difficulty debugging the program.
How should Ann rewrite the third line of code to correct the errors in that line?

A.
S=Trim.cStr.rs.Fields(i).Name & “”))

B.
S = Trim(cStr(rs.Fields(i).Name & “”))

C.
S = Trim(cStr(rs.Fields(i).Name))

D.
S = Trim(cStr(rs.Fields(i).Name & )



Leave a Reply 0

Your email address will not be published. Required fields are marked *