Javascript Questions and Answers
Practice ModeShowing 10 of 78 questions
Q31
Choose the four symbol pairs that represent RegExp properties lastMatch, lastParent, leftContext, and rightContext, respectively:
Answer: Option A
Q32
Which of the following properties hold the values of the pixels of the length of the width and height of the viewer's screen resolution?
Answer: Option A
Q33
ParseInt("15",10)=?
Answer: Option A
Q34
Which JavaScript feature uses JAR files?
Answer: Option A
Q35
How to assign a function to a variable with the JavaScript Function contructor ?
Answer: Option C
Q36
In JavaScript, Window.alert() is used to allow user to enter something
Answer: Option B
Q37
<script language="javascript">
function x()
{
var qpt = "We are fast growing Software Company located in Chennai, India.";
var pattern = new RegExp("in","gi");
document.write(pattern.exec(qpt) + " ");
document.write(pattern.exec(qpt) + " ");
document.write(pattern.exec(qpt) + " ");
}
</script>
Answer: Option A
Q38
Is Javascript has any date data type?
Answer: Option B
Q39
Math. round(-20.5)=?
Answer: Option C
Q40
?_name is it valid javascript identifier?
Answer: Option B