GoConqr has a new look! Let us know what you think.

Quiz

JavaScript 2

Alex Thompson 25 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (25)

  1. 1A JavaScript ________ is a block of JavaScript code, that can be executed when "asked" for. For example, a _______ can be executed when an event occurs, like when the user clicks a button.
    1. Afunction
    2. Bvariable
    3. Cobject
    4. Doperator
  2. 2_______ scripts are practical when the same code is used in many different web pages.
    1. AExternal
    2. BInternal
    3. CInline
  3. 3JavaScript files have the file extension _____
    1. A.exe
    2. B.javaScript
    3. C.js
  4. 4You can place an external script reference in _______
    1. A<head>
    2. B<head> or <body>
    3. C<body>
    4. DNone
  5. 5Placing scripts in external files have the following advantages:
    1. AIt separates HTML and code
    2. BIt makes HTML and JavaScript easier to read and maintain
    3. CCached JavaScript files can speed up page loads
    4. DNone
  6. 6How to add several script files to one page
    1. A<script src="[myScript1.js,myScript2.js]"></script>
    2. B<script src="myScript1.js,myScript2.js"></script>
    3. C<script src="myScript1.js"></script>
      <script src="myScript2.js"></script>
    4. D<script src="(myScript1.js,myScript2.js)"></script>
  7. 7External scripts can be referenced with a ___________________
    1. Afull URL or with a path relative to the current web page
    2. Bfull URL
    3. Cpath relative to the current web page
    4. DNone
  8. 8JavaScript can "display" data in different ways:
    Writing into an alert box, using [blank_start]window.alert()[blank_end].
    Writing into the HTML output using [blank_start]document.write()[blank_end].
    Writing into an HTML element, using [blank_start]innerHTML[blank_end].
    Writing into the browser console, using [blank_start]console.log()[blank_end].
    1. Awindow.alert()
    2. Bdocument.write()
    3. CinnerHTML
    4. Dconsole.log()
    5. Edocument.write()
    6. Fwindow.alert()
    7. GinnerHTML
    8. Hconsole.log()
    9. IinnerHTML
    10. Jwindow.alert()
    11. Kdocument.write
    12. Lconsole.log()
    13. Mconsole.log()
    14. Nwindow.alert()
    15. Odocument.write
    16. PinnerHTML
  9. 9A [blank_start]computer program[blank_end] is a list of "instructions" to be "executed" by the computer
    1. Acomputer program
    2. Bdigital list
    3. CSpreadsheet
  10. 10In JavaScript program instructions are called ____________
    1. Aobjects
    2. Bclass
    3. Carray
    4. Dstatements

Information

Description
Quiz on JavaScript 2, created by Alex Thompson on 08/12/2016.
Language
English
Views
4
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?