JavaScript Mcq Questions

11. JavaScript is designed for following purpose -

A. to style HTML pages
B. to execute Queries related to databases on a server
C. to add interactivity to html pages
D. All of the above

View Answer


12. What will be the output of the following Javascript code?
    var string1 = ”Letsfindcourse”;
    var intvalue = 30;
    alert( string1 + intvalue );

A. Letsfindcourse 30
B. 30
C. Letsfindcourse30
D. Exception

View Answer


13. Among the following, which one is a ternary operator in JavaScript?

A. #
B. ::
C. &:
D. ?:

View Answer


14. What are the three important manipulations done in a for loop on a loop variable in javascript?

A. the initialization, the Incrementation, and update
B. the initialization, the test, and the update
C. the initialization, the test, and Incrementation
D. All of the above

View Answer


15. What does javascript use instead of == and !=?

A. It uses bitwise checking
B. It uses === and !== instead
C. It uses equals() and notequals() instead
D. It uses equalto()

View Answer


16. What should appear at the very end of your JavaScript?
The <script language="javascript"> tag

A. <script>
B. <script>
C. </script language="javascript">
D. All of the above

View Answer


17. Among the keywords below, which one is not a statement?

A. if
B. with
C. debugger
D. use strict

View Answer


18. How do we define the term Thread?

A. Device that controls input
B. Variable that controls movement
C. Controlled execution of applications
D. None of the above

View Answer


19. Which symbol is used for comments in Javascript?

A. \\
B. //
C. \* *\
D. \* */

View Answer


20. Which of them is not the looping structures in JavaScript?

A. for
B. while
C. forwhich
D. dowhile

View Answer







Also check :


Discussion


* You must be logged in to add comment.