Friday, January 3, 2014

Tutorial 10 Questions 51 through 100



  1. JavaScript supports comment tags, using a set of double _____ at the beginning of a line that instructs the browser to ignore the line and not interpret it as a JavaScript command.
    1. backslashes
    2. commas
    3. periods
    4. slashes - correct answer
  2. JavaScript supports how many data types?
    1. 1
    2. 2
    3. 3
    4. 4 - correct answer
  3. Most JavaScript commands and names are not case sensitive.
    1. true
    2. false - correct answer
  4. Multiple parameters are separated by _____.
    1. brackets
    2. parenthesis
    3. curly braces
    4. commas - correct answer
  5. One can create a _____ variable to determine whether the user is running the Netscape browser.
    1. null
    2. string
    3. conditional
    4. Boolean - correct answer
  6. One way to handle the way that XML parsers treat the content of a JavaScript program is to place the JavaScript code within a(n) _____ section.
    1. CDATA - correct answer
    2. PCDATA
    3. XML
    4. ASP
  7. Parameter values can not be variables themselves.
    1. true
    2. false - correct answer
  8. Scripting languages are distinguished by the _____ types.
    1. MIME - correct answer
    2. DTD
    3. XML
    4. DDL
  9. Scripts can be placed in a _____ section of a Web page.
    1. headers
    2. body
    3. both a and b - correct answer
    4. none of the above
  10. Some JavaScript functions require parameters, which are variables associated with the function.
    1. true - correct answer
    2. false

  11. The Boolean values are on and off.
    1. true
    2. false - correct answer
  12. The great advantage of a function is that you can reuse it.
    1. true - correct answer
    2. false
  13. The responsibility for the development of a scripting standard has been transferred to an international body called _____.
    1. ECMA - correct answer
    2. NASA
    3. NSF
    4. W3C
  14. The section marked 1 in the above figure is an _____.
    1. link for displaying errors
    2. box for displaying errors
    3. link for entering JavaScript code
    4. box for entering JavaScript code - correct answer
  15. The section marked 2 in the above figure is a _____.
    1. link for displaying errors - correct answer
    2. box for displaying errors
    3. link for entering JavaScript code
    4. box for entering JavaScript code
  16. The type attribute value for JavaScript is _____.
    1. text/js
    2. text/javascript - correct answer
    3. script/jw
    4. script/javascript
  17. Users need to work with a developer's kit to compile a JavaScript program.
    1. true
    2. false - correct answer
  18. Variable declarations should be placed at teh _____ of your program to make your code easier to interpret.
    1. middle
    2. ending
    3. beginning - correct answer
    4. none of the above
  19. Variable names cannot contain _____.
    1. numbers
    2. spaces - correct answer
    3. underscore characters
    4. any of the above
  20. What is Internet Explorer's scripting language called?
    1. IEScript
    2. VBScript  - correct answer
    3. Oak
    4. JavaScript

  21. When calling a JavaScript function, you provide in your call _____.
    1. the function name
    2. the parameters
    3. both a and b - correct answer
    4. none of the above
  22. When the browser loads the HTML file containing a function, the browser bypasses the function without executing it; the function is executed only when called by another JavaScript command.
    1. true - correct answer
    2. false
  23. When variables are not strictly tied to specific data types, programmers refer to the langauge as a _____ typed language.
    1. strongly
    2. loosely
    3. weakly - correct answer
    4. strictly
  24. Where you place a function in the HTML file is unimportant.
    1. true
    2. false - correct answer
  25. Which of the following assigns the result of calling a function named returnHello that returns a value of "Hello" and takes no parameters correctly?
    1. returnHello("Hello");
    2. msg=returnHello(); - correct answer
    3. msg=returnHello("Hello")
    4. returnHello("World");
  26. Which of the following can be passed to a text string parameter called msg?
    1. a text string
    2. a text string + a number
    3. a variable + a variable
    4. all of the above - correct answer
  27. Which of the following commands can be used in a function?
    1. return 3;
    2. document.write("Hwllo World");
    3. z = 1 + 2;
    4. all of the above - correct answer
  28. Which of the following provides features that allow you to scramble text in a page?
    1. HTML
    2. XHTML 1.0
    3. XHTML 1.1
    4. none of the above - correct answer
  29. With server-side scripts, computing is distributed over the Web so that no one server is overloaded with programming requests.
    1. true
    2. false - correct answer
  30. You can _____ an e-mail address to prevent it from being grabbed by programs that scan Web pages.
    1. inherit
    2. compile
    3. spam
    4. scramble - correct answer
  31. You can cause a variable to have no value by assigning it the value _____.
    1. 0
    2. null - correct answer
    3. empty
    4. " "
  32. You can declare a variable in JavaScript using the _____ command.
    1. dec
    2. var - correct answer
    3. this
    4. val
  33. You can declare multiple variables by entering the variable names in a comma-separated list.
    1. true - correct answer
    2. false
  34. You can display single quotation marks with the document.write() method by enclosing your text string within _____.
    1. periods
    2. double quotation marks - correct answer
    3. parentheses
    4. brackets
  35. You cannot use words that JavaScript has reserved for other purposes when you create a variable name.
    1. true - correct answer
    2. false
  36. You should declare a variable in JavaScript by using the syntax: var variable;.
    1. true - correct answer
    2. false
  37. You should place all script elements that reference external files in the document head.
    1. true - correct answer
    2. false
  38. An action for the browser to take in a script is called a _____.
    1. command
    2. statement
    3. both a and b - correct answer
    4. none of the above
  39. Which of the following formats is not a numeric value data type?
    1. "12" - correct answer
    2. 11.5
    3. 3
    4. 5.10E+02
  40. You can hide script from older browsers that do not support JavaScript by using _____ tags.
    1. slash
    2. <script>
    3. comment - correct answer
    4. internal
  41. _____ is the official name of the standard developed by the international body responsible for the development of a scripting standard.
    1. PerlScript
    2. VBScript
    3. ECMAScript
    4. IEScript - wrong answer
  42. _____ language forces programming to explicitly identify a variable's data type.
    1. Strongly typed
    2. Mildly typed
    3. Weakly typed - wrong answer
    4. Mime typed
  43. Case 10-3:  Arlene's Authentic Indian Wear sells handmade Cheyenne Indian clothing online.  She has added some JavaScript functions to calculate how much a person has to pay before they submit the order page, but is having some trouble.  If Arlene is using Internet Explorer, what could she use to debug her program?
    1. Firefox Error Console
    2. Microsoft Script Debugger
    3. Microsoft Console
    4. none of the above - wrong answer
  44. Case 10-3:  Arlene's Authentic Indian Wear sells handmade Cheyenne Indian clothing online.  She has added some JavaScript functions to calculate how much a person has to pay before they submit the order page, but is having some trouble.In Firefox, the error console shows errors from _____.
    1. CSS
    2. JavaScript - wrong answer
    3. both a and b
    4. none of the above
  45. In the figure above, the highlighted item marked 1 is a highlighted _____.
    1. link - wrong answer
    2. comment
    3. table
    4. error
  46. The _____ symbol can be used to combine text strings.
    1. + - wrong answer
    2. *
    3. ++
    4. ~
  47. Which of the following is NOT an alternative that helps avoid problems with XML parsers.
    1. comment the javascript
    2. use CDATA sections
    3. use external scripts - wrong answer
    4. all of the above
  48. You use the _____ tag to distringuish JavaScript code from the text that you want displayed on a Web page.
    1. <code>
    2. <JavaScript> - wrong answer
    3. <script>
    4. <js>
  49. You can hide script from older browsers that do not support JavaScript by using _____ tags.
    1. slash
    2. <script>
    3. comment - correct answer
    4. internal

1 comment:

  1. 1. Case-Based Critical Thinking Questions

    Case 10-3
    Arlene's Authentic Indian Wear sells handmade Cheyenne Indian clothing online. She has added some JavaScript functions to calculate how much a person has to pay before they submit the order page, but is having some trouble.

    If Arlene is using Internet Explorer, what could she use to debug her program?

    Firefox Error Console
    Microsoft Script Debugger - correct answer
    Microsoft Console
    none of the above

    2. Case-Based Critical Thinking Questions

    Case 10-1
    Legend Films is planning to create a page that will allow users to email their video requests for the studio to add to their online video offerings.

    What should the Web designers worry about when making such a form?

    browser versions
    e-mail harvesters
    spammers
    all of the above - correct answer

    3. A ____ variable is any group of characters, such as Hello or Happy Holidays! .

    Boolean
    data
    text string - text string
    null

    4. Another method to write text to the Web page is the ____ method.

    document.writeln() - correct answer
    document.writeline()
    document.insrtln()
    document.insrtline()

    5. Case-Based Critical Thinking Questions

    Case 10-2
    Bobby had added a form to his blog to allow people to e-mail him feedback. He is having trouble getting his pages to validate and his JavaScript to work.

    The first thing Bobby should do is place his script in a(n) ____.

    external file
    script tag - wrong answer
    body tag
    none of the above


    ReplyDelete