Java Script MCQ Set Paper 1
Java Script MCQ Set Paper 1
Java Script MCQ Set Paper 1
[Marks]1
[Negative Marks]0
Q.5) How do you round the number 7.25 to the nearest integer?
[a]rnd(7.25)
*[b]math.round(7.25)
[c]round(7.25)
[d]round()
[a]shift()
[b]push()
[c]order()
*[d]sort()
<script>
Function x()
{
document.write(2+5=”8”);
}
</script>
[a]258
[b]error
[c]7
*[d]78
Q.17) In the following given syntax of the switch statement, the Expression
is compared with the labels using which one of the following operators?
[a]==
[b]equals
*[c] ===
[d]none of the above
Q.18) Which of the following function of the String object returns the
character in the string starting at the specified position via the specified
number of characters?
*[a] substr()
[b] split()
[c] slice()
[d] search()
[a] searchandreplace()
*[b] replace()
[c] edit()
[d] add()