Tutorial 10

Tutorial 10 - Tutorial 10: Working with JavaScript...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Tutorial 10: Working with JavaScript TRUE/FALSE 1. In client-side programming, programs run on the client side directly change the server data. ANS: F PTS: 1 REF: HTML 566 2. Early on, a problem with Java was that nonprogrammers found it difficult to learn and use to write their own Java applets. ANS: T PTS: 1 REF: HTML 568 3. 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. ANS: T PTS: 1 REF: HTML 568 4. In Java, programs cannot write content to the hard disk. ANS: T PTS: 1 REF: HTML 569 5. Essentially, Java and JavaScript are the same. ANS: F PTS: 1 REF: HTML 569 6. Users need to work with a developer’s kit to compile a JavaScript program. ANS: F PTS: 1 REF: HTML 568 7. JavaScript commands can be inserted directly into an HTML file rather than being placed in a separate program file. ANS: T PTS: 1 REF: HTML 568 8. Internet Explorer actually supports a slightly different version of JavaScript called JScript. ANS: T PTS: 1 REF: HTML 569 9. The document.write() and document.writeln() methods reflect the object-oriented nature of the JavaS- cript language. ANS: T PTS: 1 REF: HTML 573 10. Most JavaScript commands and names are not case sensitive. ANS: F PTS: 1 REF: HTML 575 11. You cannot use words that JavaScript has reserved for other purposes when you create a variable name. ANS: T PTS: 1 REF: HTML 578
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
12. Some JavaScript functions require parameters, which are variables associated with the function. ANS: T PTS: 1 REF: HTML 583 13. Function parameters must be placed within parentheses, following the function name, and the paramet- ers must be separated by periods. ANS: F PTS: 1 REF: HTML 583 14. Where you place a function in the HTML file is unimportant. ANS: F PTS: 1 REF: HTML 584 15. 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. ANS: T PTS: 1 REF: HTML 584 16. It is common practice for JavaScript programmers to create libraries of functions located in external files to be easily accessible to many Web pages. ANS: T PTS: 1 REF: HTML 590 17. Parameter values can not be variables themselves. ANS: F PTS: 1 REF: HTML 585 18. The great advantage of a function is that you can reuse it. ANS: T PTS: 1 REF: HTML 586 19. A function can not be designed to return a value. ANS: F PTS: 1 REF: HTML 588 20. If a function returns a value, it can be stored in a variable. ANS: T PTS: 1 REF: HTML 588 MODIFIED TRUE/FALSE 1. With server-side scripts, computing is distributed over the Web so that no one server is overloaded with programming requests. _________________________ ANS: F, client-side PTS: 1 REF: HTML 567 2. Although the standard developed by the ECMA is called ECMAScript, browsers still generally refer to it as VBScript . _________________________ ANS: F, JavaScript
Background image of page 2
PTS: 1 REF: HTML 569 3. If you place JavaScript code in a separate file, the different pages in your Web site can use the pro-
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/22/2011 for the course ACCT 3551 taught by Professor Brown during the Spring '11 term at UNC.

Page1 / 18

Tutorial 10 - Tutorial 10: Working with JavaScript...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online