Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What property would you use to redirect a visitor to another page? a) document.U

ID: 3543902 • Letter: W

Question

What property would you use to redirect a visitor to another page?

a) document.URL

b) window.location.href

c) document.location.href

d) link.href

2) In JavaScript, which of the statements below can be used for string declaration?

1) var cst="PHPKB Knowledge Base Software";

2) var cst=new String("PHPKB Knowledge Base Software");

a) Either (1) or (2)

b) Only (1)

c) Neither (1) nor (2)

d) Only (2)

3) What will be the output of following copde snippet?

<script type="text/javascript">

var cst = "Chadha Software Technologies";

var result = cst.indexOf("Tech");

document.write(result);

</script>

a) 15

b) 16

c) 19

d) 17

Explanation / Answer

1.b

2.a

3.b

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote