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

1.What will be the output of following copde snippet? <script type=\"text/javasc

ID: 3555394 • Letter: 1

Question

1.What will be the output of following copde snippet?
<script type="text/javascript">
function x()
{
var cst = "We are Fast Growing Software Company located in Jalandhar, India.";
var pattern = new RegExp("in","g");
document.write(pattern.exec(cst) + " ");
document.write(pattern.exec(cst) + " ");
document.write(pattern.exec(cst) + " ");
}
</script>
a) in in In
b) in in in
c) in in null
d) in null null
2) -________ method is used to remove focus from the specified object.
a) blur()
b) focus()
c) None
3) What does parseFloat("FF2") evaluates to?
a) 152
b) FF2
c) NaN
d) None

Explanation / Answer

c

a

c

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote