Web Development MCQs Quiz 2

WEB QUIZ-2 Web Application Development Marks: 20

  1. Select JavaScript pre-defined functions. (Select all appropriate)
  2. System.write() Alert() Console.write() Printf()
  3. What output will the following display?

  4. Orange, Apple, Mango, Grapes
    Banana, Orange, Apple, Mango
    Banana, Orange, Apple, Mango, Grapes
    Orange, Apple, Mango
  5. External scripts are practical when the same code is used in many different web pages. So External JavaScript files have the file extension ____.
  6. .Jscript .Java .JS .JavaS
  7. Code after ____is treated as a comment in JavaScript.
  8. <-- \\ */ //
  9. To use an external script, put the name of the script file in the ___ attribute of a <script> tag.
  10. link src href rel
  11. JavaScript code is inserted between ____ tags.
  12. <Jscript> and </Jscript>
    <JavaScript> and </JavaScript>
    <Script> and </script>
    <js> and </js>
  13. What output will the following display?

  14. Banana, Orange, Apple, Mango, Grapes, Kiwi
    Banana, Orange, Apple, Mango, Grapes
    Kiwi, Banana, Orange, Apple, Mango, Grapes
    Kiwi, Banana, Orange, Apple, Mango, Grapes, Kiwi
  15. How many number of scripts can be added in an HTML document?
  16. Two Any number One None
  17. The following code will display any random number on browser ___?

  18. Between 0 to 99 Between 1 to 100 Between 0 to 100 Between 1 to 99
  19. <button onclick="myFunction()" type="button">Try it</button>; What do you understand the above html code.
  20. When click on button “Try it” myFunction() function will call.
    When moue hover on button “Try it” myFunction() function will call.
    When button “Try it” will load on page myFunction() function will call.
    Function will not call, there are some errors found.
  21. Using _____ after an HTML document is loaded, will delete all existing HTML:
  22. innerHTML window.alert()
    console.log() document.write()
  23. Adding two numbers, will return the sum, and adding a number and a string will return ____.
  24. error exception
    string number
  25. JavaScript is an/a _____ based language.
  26. Interpreter Object-Oriented
    Assembler Compiler
  27. Placing scripts in external files has some advantages: (Select all appropriate)
  28. It makes HTML and JavaScript and maintain
    Cached JavaScript files can speed up page loads
    If two javascript files are dependent on one another, then a failure in one file may affect the execution of the other dependent file.
    easier to read It separates HTML and code
  29. What output will the following display?

  30. 100 A 165 100 65 100+A
  31. JavaScript can "display" data in different ways: Select all appropriate
  32. Writing into an alert box, using window.alert().<,br> Writing into the HTML output using document.write().
    Writing into an HTML element, using innerHTML.
    Writing into the browser console, using console.log().
  33. Scripts can be placed in the ____ section of an HTML page.
  34. Body
    Head
    Both head and Body
    Either Head or Body
  35. JavaScript uses the __ keyword to declare variables. (Select all appropriate)
  36. Var Consider Let Int or string

For Solution Attempt Quiz for free and see answers

Click Here to Start
Web Development MCQs QUIZ-3

Comments

Popular posts from this blog

GAT GENERAL TEST Sample 1 Questions (Quantitative)

GAT GENERAL TEST Solution of Sample 1 Questions (Quantitative)

GAT GENERAL TEST Sample 3 Questions Solution(Quantitative)