Lecture 2 Reviewer Flashcards

1
Q

Javascript is a ___ computer programming language.

A

dynamic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It is lightweight and most commonly used as a part of web pages, whose implementations allow…

A

client-side script to interact with the user and make dynamic pages; Javascript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

It is an interpreted programming language with object-oriented capabilities.

A

Javascript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

JS was first known as ___, but Netscape changes its name to JavaScript, possibly because of the excitement being generated by Java.

A

LiveScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

JS made its first appearance in ___ with the name LiveScript.

A

Netscape 2.0 in 1995

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The ___ of the language has been embedded in Netscape, Internet Explorer, and other web browsers.

A

general-purpose core

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The ___ defined a standard version of the core JavaScript language.

A

ECMA-262 Specification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

JS is a ___, ___ programming language.

A

lightweight; interpreted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Designed for creating ___ applications.

A

network-centric; JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Complementary to and integrated with ___.

A

Java; JS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Complementary to and integrated with ___(2).

A

HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Open and cross-platform

A

JS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

___ is the most common form of the language

A

Client-side JS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The script should be … for the code to be interpreted by the browser.

A

included in or references by an HTML document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

It means that a web page need not be a static HTML, but can include programs that ___ (1), ___ (2), and ___ (3).

A

interact with the user; control the browser; dynamically create HTML content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The JS client-side mechanism provides many advantages over ___.

A

traditional CGI server-side scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

you might use ___ to check if the user has entered a valid e-mail address in a form field

A

JS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The JS code is executed when the user submits the form, and only if ___, they would be submitted to the web server.

A

all the entries are valid

19
Q

JavaScript can be used to trap ___ events such as button clicks, link navigation, and other actions that the ___.

A

user-initiated; user initiates explicitly or implicitly

20
Q

Advantages of JavaScript

A

1 Less server interaction
2 Immediate feedback to the visitor
3 Increased interactivity
4 Richer interfaces

21
Q

Advantage of JS: You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.

A

Less server interaction

22
Q

Advantage of JS: They don’t have to wait for a page reload to see if they have forgotten to enter something.

A

Immediate feedback to the visitors

23
Q

Advantage of JS: You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.

A

Increased interactivity

24
Q

Advantage of JS: You can use JavaScript to include such items as drag and-drop components and sliders to give a Rich Interface to your site visitors.

A

Richer interfaces

25
Q

Limitations of JavaScript

A

1 Client-side JavaScript does not allow the reading or writing of files; This has been kept for security reason.
2 JavaScript cannot be used for networking applications because there is no such support available.
3 JavaScript doesn’t have any multithreading or multiprocessor capabilities.

26
Q

JavaScript is a ___ that allows you to build interactivity into otherwise static HTML pages.

A

lightweight, interpreted programming language

27
Q

JavaScript Development Tools

A

1 Microsoft FrontPage
2 Macromedia Dreamweaver MX
3 Macromedia HomeSite 5

28
Q

One of major strengths of JavaScript is that it…

A

does not require expensive development tools

29
Q

You can start with a simple text editor such as ___.

A

Notepad

30
Q

Since it is an interpreted language inside the context of a web browser, you don’t even need to buy a ___.

A

compiler

31
Q

To make our life simpler, various vendors have come up with very nice ___.

A

JavaScript editing tools

32
Q

Some of the JS editing tools:

A

1 Microsoft FrontPage
2 Macromedia Dreamweaver MX
3 Macromedia HomeSite 5

33
Q

JS Dev Tool: Microsoft has developed a popular HTML editor called ___. * also provides web developers with a number of JavaScript tools to assist in the creation of interactive websites.

A

Microsoft FrontPage

34
Q

JS Dev Tool: ___ is a very popular HTML and JavaScript editor in the professional web development crowd. It provides several handy prebuilt JavaScript components, integrates well with databases, and conforms to new standards such as XHTML and XML.

A

Macromedia Dreamweaver MX

35
Q

JS Dev Tool: ___ is a well-liked HTML and JavaScript editor from Macromedia that can be used to manage personal websites effectively.

A

Macromedia HomeSite 5

36
Q

Where is JavaScript Today? The ___ standard will be the first update to be released in over four years.

A

ECMAScript Edition 5

37
Q

___ conforms to Edition 5 of the ECMAScript standard, and the difference between the two is extremely minor.

A

JavaScript 2.0

38
Q

Today, Netscape’s JavaScript and Microsoft’s JScript conform to the ___, although both the languages still support the features that are not a part of the standard.

A

ECMAScript standard

39
Q

JavaScript can be implemented using JavaScript statements that are placed within the ___ HTML tags in a web page.

A
<script>
...
</script>
40
Q

You can place the script tags, containing your JavaScript, anywhere within you web page, but it is normally recommended that you should keep it within the ___ tags.

A

<head>
</head>

41
Q

The script tag alerts the browser program to…

A

start interpreting all the text between these tags as a script

42
Q

The script tag takes two important attributes:

A

Language, Type

43
Q

This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although recent versions of HTML (and XHTML, its successor) have phased out the use of this attribute.

A

Language

44
Q

This attribute is what is now recommended to indicate the scripting language in use and its value should be set to “text/javascript”.

A

Type