Java Test Flashcards

(29 cards)

1
Q

you declare a JavaScript variable with:

A

var carName;

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

Date and Math objects are:

A

Built in objects

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

To convert from a numeric string to an integer us the:

A

parseInt() function

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

a property that has no assigned value is referred to being

A

null

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

Date and Math objects are:

A

Built in objects

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

reusable section of code

A

function

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

The correct syntax for referring to an external script called xxx.js is:

A

“”

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

JavaScript includes the following types:

A

numeric, string, boolean

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

reusable section of code

A

function

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

The correct syntax for referring to an external script called xxx.js is:

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

A property is a characteristic of an:

A

Object

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

The correct syntax for referring to an external script called xxx.js is:

A

;

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

JavaScript includes the following types:

A

numeric, string, boolean

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

You write “Hello World” in an alert box as:

A

alert(“HelloWorld”);

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

a property that has no assigned value is referred to being

A

null

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

A property that allows javascript to modify an HTML element without the script tab is:

17
Q

You write “Hello World” in an alert box as:

A

alert(“HelloWorld”);

18
Q

A set of rules that dictate how the language is written

19
Q

A set of rules that dictate how the language is written

20
Q

The correct javascript syntax to change the content of the HTML element is

A

document.getElementById(“demo”).innerHTML = “Hello World!”;

21
Q

JavaScript uses a:

22
Q

JavaScript uses a:

23
Q

variables store information

24
Q

To round the number 7.25 to the nearest integer use:

A

Math.round(7.15)

25
To convert from a numeric string to an integer us the:
parseInt() function
26
The = is used to:
assign a value to a variable
27
In javascript you can output text to the browser window with:
document.write() or document.writeIn()
28
A property that allows javascript to modify an HTML element without the script tab is:
innerHTML
29
variables store information
temporarily