Answer the following statements true (T) or false (F)

1. If you pass an array to a function, any changes made to the array in the function remain local to the function and do not affect the array values outside that function.
2. Given:
```
var x = 100;
var boolx = new Boolean(x);
document.write(boolx);
```
The result will be either true or false.
3. The following will display today's date:
```
var day = new Date();
document.write(day);
```
4. A JavaScript external source file must begin with the tag.
5. If a program has a function named doStuff() in the section of a web page and a different function with the same name in a linked external source file, the function in the external source file takes precedence.


1. False
2. True
3. True
4. False
5. False

Computer Science & Information Technology

You might also like to view...

What is not contained in procedure manuals?

A) background comments B) steps to accomplish different transactions C) instructions on how to recover from problems D) what to do next if something worked E) trouble-shooting

Computer Science & Information Technology

Find the error in each of the following program segments and correct the error:

a) #include ; b) arraySize = 10; // arraySize was declared const c) Assume that int b[ 10 ] = {}; for ( int i = 0; i <= 10; i++ ) b[ i ] = 1; d) Assume that int a[ 2 ][ 2 ] = { { 1, 2 }, { 3, 4 } }; a[ 1, 1 ] = 5;

Computer Science & Information Technology

With a selection structure, your program can choose between alternate courses of action.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

?Server-side and client-side programming are the two main types of web-based programming.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology