- 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.
- backslashes
- commas
- periods
- slashes - correct answer
- JavaScript supports how many data types?
- 1
- 2
- 3
- 4 - correct answer
- Most JavaScript commands and names are not case sensitive.
- true
- false - correct answer
- Multiple parameters are separated by _____.
- brackets
- parenthesis
- curly braces
- commas - correct answer
- One can create a _____ variable to determine whether the user is running the Netscape browser.
- null
- string
- conditional
- Boolean - correct answer
- 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.
- CDATA - correct answer
- PCDATA
- XML
- ASP
- Parameter values can not be variables themselves.
- true
- false - correct answer
- Scripting languages are distinguished by the _____ types.
- MIME - correct answer
- DTD
- XML
- DDL
- Scripts can be placed in a _____ section of a Web page.
- headers
- body
- both a and b - correct answer
- none of the above
- Some JavaScript functions require parameters, which are variables associated with the function.
- true - correct answer
- false
- The Boolean values are on and off.
- true
- false - correct answer
- The great advantage of a function is that you can reuse it.
- true - correct answer
- false
- The responsibility for the development of a scripting standard has been transferred to an international body called _____.
- ECMA - correct answer
- NASA
- NSF
- W3C
- The section marked 1 in the above figure is an _____.
- link for displaying errors
- box for displaying errors
- link for entering JavaScript code
- box for entering JavaScript code - correct answer
- The section marked 2 in the above figure is a _____.
- link for displaying errors - correct answer
- box for displaying errors
- link for entering JavaScript code
- box for entering JavaScript code
- The type attribute value for JavaScript is _____.
- text/js
- text/javascript - correct answer
- script/jw
- script/javascript
- Users need to work with a developer's kit to compile a JavaScript program.
- true
- false - correct answer
- Variable declarations should be placed at teh _____ of your program to make your code easier to interpret.
- middle
- ending
- beginning - correct answer
- none of the above
- Variable names cannot contain _____.
- numbers
- spaces - correct answer
- underscore characters
- any of the above
- What is Internet Explorer's scripting language called?
- IEScript
- VBScript - correct answer
- Oak
- JavaScript
- When calling a JavaScript function, you provide in your call _____.
- the function name
- the parameters
- both a and b - correct answer
- none of the above
- 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.
- true - correct answer
- false
- When variables are not strictly tied to specific data types, programmers refer to the langauge as a _____ typed language.
- strongly
- loosely
- weakly - correct answer
- strictly
- Where you place a function in the HTML file is unimportant.
- true
- false - correct answer
- Which of the following assigns the result of calling a function named returnHello that returns a value of "Hello" and takes no parameters correctly?
- returnHello("Hello");
- msg=returnHello(); - correct answer
- msg=returnHello("Hello")
- returnHello("World");
- Which of the following can be passed to a text string parameter called msg?
- a text string
- a text string + a number
- a variable + a variable
- all of the above - correct answer
- Which of the following commands can be used in a function?
- return 3;
- document.write("Hwllo World");
- z = 1 + 2;
- all of the above - correct answer
- Which of the following provides features that allow you to scramble text in a page?
- HTML
- XHTML 1.0
- XHTML 1.1
- none of the above - correct answer
- With server-side scripts, computing is distributed over the Web so that no one server is overloaded with programming requests.
- true
- false - correct answer
- You can _____ an e-mail address to prevent it from being grabbed by programs that scan Web pages.
- inherit
- compile
- spam
- scramble - correct answer
- You can cause a variable to have no value by assigning it the value _____.
- 0
- null - correct answer
- empty
- " "
- You can declare a variable in JavaScript using the _____ command.
- dec
- var - correct answer
- this
- val
- You can declare multiple variables by entering the variable names in a comma-separated list.
- true - correct answer
- false
- You can display single quotation marks with the document.write() method by enclosing your text string within _____.
- periods
- double quotation marks - correct answer
- parentheses
- brackets
- You cannot use words that JavaScript has reserved for other purposes when you create a variable name.
- true - correct answer
- false
- You should declare a variable in JavaScript by using the syntax: var variable;.
- true - correct answer
- false
- You should place all script elements that reference external files in the document head.
- true - correct answer
- false
- An action for the browser to take in a script is called a _____.
- command
- statement
- both a and b - correct answer
- none of the above
- Which of the following formats is not a numeric value data type?
- "12" - correct answer
- 11.5
- 3
- 5.10E+02
- You can hide script from older browsers that do not support JavaScript by using _____ tags.
- slash
- <script>
- comment - correct answer
- internal
- _____ is the official name of the standard developed by the international body responsible for the development of a scripting standard.
- PerlScript
- VBScript
- ECMAScript
- IEScript - wrong answer
- _____ language forces programming to explicitly identify a variable's data type.
- Strongly typed
- Mildly typed
- Weakly typed - wrong answer
- Mime typed
- 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
- Microsoft Console
- none of the above - wrong answer
- 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 _____.
- CSS
- JavaScript - wrong answer
- both a and b
- none of the above
- In the figure above, the highlighted item marked 1 is a highlighted _____.
- link - wrong answer
- comment
- table
- error
- The _____ symbol can be used to combine text strings.
- + - wrong answer
- *
- ++
- ~
- Which of the following is NOT an alternative that helps avoid problems with XML parsers.
- comment the javascript
- use CDATA sections
- use external scripts - wrong answer
- all of the above
- You use the _____ tag to distringuish JavaScript code from the text that you want displayed on a Web page.
- <code>
- <JavaScript> - wrong answer
- <script>
- <js>
- You can hide script from older browsers that do not support JavaScript by using _____ tags.
- slash
- <script>
- comment - correct answer
- internal
Friday, January 3, 2014
Tutorial 10 Questions 51 through 100
Subscribe to:
Post Comments (Atom)
1. Case-Based Critical Thinking Questions
ReplyDeleteCase 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