Loading, please wait...

Java Script MCQ Quiz (Multiple Choice Questions And Answers)

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

6. Why so JavaScript and Java have similar name?

  • They both originated on the island of Java
  • JavaScript's syntax is loosely based on Java's
  • Both A and B
  • None of the above

7. Output is

<script type="text/javascript"> 
var a="GeeksforGeeks"; 
var x=a.lastIndexOf("G"); 
document.write(x); 
</script>
  • 8
  • 9
  • 0
  • Nothing

8. The escape sequence ‘\f’ stands for

  • Floating numbers
  • Representation of functions that returns a value
  • Form feed
  • None of the above

9. Purpose of designing the Javascript

  • To Perform Server Side Scripting Opertion
  • To add interactivity to HTML Pages
  • To Style HTML Pages
  • All of the above

10. Which of the following function of Array object removes the last element from an array and returns that element?

  • push()
  • delete()
  • pop()
  • link()