1) Scripting language is a) High Level Programming language b) Assembly Level pr
ID: 3551024 • Letter: 1
Question
1) Scripting language is
a) High Level Programming language
b) Assembly Level programming language
c) Machine level programming language
2) 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.
3.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
4) 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
5)Which of the following is true?
a) If onKeyDown returns false, the key-press event is cancelled.
b) If onKeyPress returns false, the key-down event is cancelled.
c) If onKeyDown returns false, the key-up event is cancelled.
d) If onKeyPress returns false, the key-up event is canceled.
Explanation / Answer
a,c,c,c,a a,c,c,c,a a,c,c,c,aRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.