- _____ are useful because they can store information created in one part of your program and use that information in another.
- Conditional operators
- Logical operators
- Assignment operators
- Variables - correct answer
- _____ can be used to look for e-mail addresses by scanning Web pages.
- Span
- Server-side
- An E-mail harvester - correct answer
- Client-side
- _____ is an interpreted language, meaning that the program code is executed directly without compiling.
- JavaScript - correct answer
- Java
- C++
- All of the above
- _____ is essentially junk email
- spam - correct answer
- client-side
- server-side
- an e-mail harvester
- _____-side programs do not require users to wait for data to be sent over the Internet to a Web server.
- Server
- File
- Client - correct answer
- Database
- A function can not be designed to return a value.
- true
- false - correct answer
- A function may require _____ which are values used by the function.
- terms
- parameters - correct answer
- ids
- names
- A global variable has local scope only.
- true
- false - correct answer
- A multiline comment begins with a /* and ends with a */.
- true - correct answer
- false
- A numeric value is any group of characters such as "Hello".
- True
- False - correct answer
- A reference to an external Javascript file is normally placed int he _____ section of an HTML document, according to good design principles.
- body
- head - correct answer
- title
- paragraph
- A text string indicates that no value has yet been assigned to the variable.
- true
- false - correct answer
- A variable declared in a function is also called a(n) _____ variable.
- global
- scope
- local scope - correct answer
- none of the above
- A variable declared in a function is said to have _____.
- global scope
- no scope
- local scope - correct answer
- none of the above
- A variable not declared in a function is also called a(n) _____ variable.
- global - correct answer
- scope
- illegal
- local
- A(n) _____ is a person who sends out unsolicited emails.
- analyst
- spammer - correct answer
- harvester
- staffer
- A(n) _____ retrieves a Web page from the server.
- programmer
- server-side program
- user - correct answer
- information set
- A(n) _____ variable has no value at all.
- null - correct answer
- empty
- cipher
- negative
- Although not a requirement, one programming convention is to place all of the function definitions used in the Web page within the head section.
- true - correct answer
- false
- Although the standard developed by the ECMA is called ECMAScript, browsers still generally refer to it as VBScript.
- true
- false - correct answer
- Any variables not declared within functions have local scope.
- true
- false - correct answer
- Before you use a variable in a Javascript program, you should _____ it.
- compile
- concatenate
- declare - correct answer
- nullify
- 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. To prevent the film orderer from receiving spam, the Web designers should _____ e-mail addresses.
- encrypt
- reverse
- scramble - correct answer
- none of the above
- 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. Bobby's JavaScript shows in his pages when displayed in older browsers. To hid his JavaScript, he can use _____.
- headers
- footers
- hidden boxes
- comments - correct answer
- 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 errors Bobby only finds when his JavaScript executes are called _____ errors.
- logical
- ending
- run-time - correct answer
- load-time
- 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. To help debug his code, Bobby could monitor the changing values of variables using a(n) _____.
- alert dialog box - correct answer
- return statement
- modular code
- logical error
- 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 woudl allow her to _____ JavaScript commands.
- locate
- add
- delete
- evaluate - correct answer
- Comments can be used to _____.
- document the code
- hide code from older browsers
- both a and b - correct answer
- none of the above
- Each JavaScript command line ends with a(n) _____ to separate it from the next command line in the program.
- comma
- ampersand
- semicolon - correct answer
- period
- Early on a problem with Java was that nonprogrammers found it difficult to learn and use to write their own Java applets.
- true - correct answer
- false
- Essentially, Java and JavaScript are the same.
- true
- false - correct answer
- For JavaScript external files, the MIME type is _____.
- file/javascript
- text/javascript - correct answer
- mime/javascript
- src/javascript
- Function names, unlike variable names, are case-sensitive.
- true
- false - correct answer
- Function parameters must be placed within parentheses, following the function name, and the parameters must be separated by periods.
- true
- false - correct answer
- If a function returns a value, it can be stored in a variable.
- true - correct answer
- false
- If x has the value 5 and the variable y has the value "combo", the y + "no" + x results in what value?
- an error
- null
- true
- combo no 5 - correct answer
- If you place JavaScript code in a separate file, the different pages in your Web site can use the programs you write in the same way that an entire site can use an external style sheet.
- true - correct answer
- false
- In client-side programming, programs run on the client side directly change the server data.
- true
- false - correct answer
- In earlier versions of HTML, the _____ attribute was used to indicate the scripting language.
- type
- language - correct answer
- mime/javascript
- src
- In Java, programs cannot write content to the hard disk.
- true - correct answer
- false
- In naming a variable, the first character must be either a letter or a(n) _____.
- underscore - correct answer
- pound sign
- number sign
- ampersand
- In the figure above, what are the variables?
- userName
- emServer
- emLink
- all of the above - correct answer
- In XHTML, the language attribute is used to indicate the script language in the <script> tag.
- true
- false - correct answer
- Internet Explorer actually supports a slightly different version of JavaScript called Jscript.
- true - correct answer
- false
- It is common practice for JavaScript programmers to create libraries of functions located in external files to be easily accessible to many Web pages.
- true - correct answer
- false
- Java requires that users have access to the _____ in order to create an executable Java applet.
- DTD
- JDK - correct answer
- ECMAScript
- DDL
- JavaScript _____ most occurrences of white space.
- repeats
- ignores - correct answer
- comments
- executes
- JavaScript code can be inserted directly into an HTML or XHTML file, or placed in a separate text file that is linked to the Web page.
- true - correct answer
- false
- JavaScript commands can be inserted directly into an HTML file rather than being placed in a separate program file.
- true - correct answer
- false
- JavaScript is _____ so you must pay attention to whether or not letters are capitalized.
- case insensitive
- case sensitive - correct answer
- case indifferent
- none of the above
Thursday, January 2, 2014
Tutorial 10 Questions 1 through 50
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment