Review scripting

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Content management systems require web authors to have a great deal of coding knowledge.

False

When using the alert() function to debug JavaScript code, remember—

use them sparingly and remove them when you are done.

A variable in a programming or scripting language is a symbolic name that represents—

value

Web pages that store information about you and retrieve it once you log in use a combination of—

A database and server side scripts

Once you have created a JavaScript function, you need to call it to make it work. If you wish to have the script run automatically when visitors first visit your page, you should call it using which event?

Add the onload function to the body

If you want to make an HTML element visible only if the user specifically requests it (that is, triggered by a user-generated event), how could you do that using JavaScript?

By using an onclick event

If you use JavaScript to create a digital clock that is displayed on a web page, you can change the appearance of that clock using—

CSS and using a clock id

What determines whether a script is client-side or server-side is—

Client-side makes changes to the current page like hidden content suddenly becoming visible and server-side scripts make custom content being delivered to the browser when a new page is loaded.

Programming languages are tolerant of mistakes. In other words, most mistakes in punctuation or capitalization will not cause a problem.

False

For client-side scripting, JavaScript is generally used rather than VBScript because—

Javascript is more available across different browsers

JavaScript is an OOP language. The acronym OOP stands for the following:

Object Oriented Programming

Server-side scripts—

Server side scripts are executed server-side, on the web server, before the web page is sent to the browser. Server-side scripts cannot be read by the user. They reside on the web server, and when requested by a web browser, they execute. What shows up in the web browser is not the script itself, but the output of the script, which is typically HTML. Because of this, server-side scripts are more reliable and accessible than client-side scripts. Anyone using a web browser can access HTML, and users don't have to turn anything on in their browser for the scripts to work.

If you're searching for built-in objects, or if you're wondering how you would know what properties or methods are available for a particular object, you can get answers to these questions by consulting a Javascript or DOM reference guide.

True

Scripted content should be a bonus for users who can access it, but if users can't access it, they should still be able to access the core content of the web page.

True

The Document Object Model (DOM) is—

a way of allowing programming and scripting languages to access and manipulate the content of web pages.

A typical lifecycle for a software product consists of the following phases, in chronological order:

design, development, testing, release

JavaScript functions are called in response to—

events

A common feature of programming languages that allows your script to perform a logic process is—

if/then/else loops

Assigning an id attribute to an HTML element enables you to do what in javaScript—

link to specific targets within a web page. stylize an element differently than other elements of the same type using css.. write JavaScript code to access the element by its id.

Which of the following is a common bug in programming?

missing punctuation ,unclosed character string , misspelled variable name

An advantage to using a browser tool to debug is that it will—

show an icon when a JavaScript error is encountered. provide a line number which may help you to isolate the problem. show a dialog that will give you more information about the bug.

Most programming or scripting languages have a lot in common. The greatest difference is in the subtlety of their—

syntax


Set pelajaran terkait

Growth and Development: Infant (Practice Questions)

View Set

Sherpath Lesson: Chapter 13 Pain Management During Childbirth Nonpharmacologic Methods of Pain Relief (wk 3)

View Set

U.S History Chapter 10 (Section 2)

View Set

Dietary Guidelines for Americans

View Set

Anthropology chapter 12 Political Systems

View Set

EMT Chapter 37 Patients with Special Challenges

View Set