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

Which best explains getSelection()? a) Returns the VALUE of a selected OPTION. b

ID: 3541936 • Letter: W

Question

Which best explains getSelection()?

a) Returns the VALUE of a selected OPTION.

b) Returns document.URL of the window in focus.

c) Returns the value of cursor-selected text

d) Returns the VALUE of a checked radio input.

What is the output of following JavaScript code?

<script type="text/javascript">

function x()

{

var s= "Good 100%";

var pattern = /D/g;

var output= s.match(pattern);

document.write(output);

}

</script>

a) Good %

b) 1,0,0

c) G,o,o,d,%

d) Error

What is the output of following JavaScript code?

<script type="text/javascript">

var cst="CHADHA SOFTWARE TECHNOLOGIES";

alert(cst.charAt(cst.length-1));

</script>

a) P

b) E

c) S

d)Error

Explanation / Answer

c

c

c

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