Question: he index value of the first element in a JavaScript array is ____________. Question 2 options: Question 3 (10 points) The condition for a while

he index value of the first element in a JavaScript array is ____________.

Question 2 options:

Question 3 (10 points)

The condition for a while loop is tested __________________ the statements in the loop are executed.

Question 3 options:

Question 4 (10 points)

Which of the following is a valid statement for declaring and initializing a variable named length to a starting value of 120?

Question 4 options:

a)

int length = 120;

b)

num length = 120;

c)

length = 120;

d)

var length = 120;

Question 5 (10 points)

In a simple assignment statement, you use the _____________________ operator.

Question 5 options:

Question 6 (10 points)

Code example 2-1 var totals = []; totals[0] = 141.95; totals[1] = 212.95; totals[2] = 411; totals[3] = 10.95;

(Refer to code example 2-1) What will the value of totals.length be after this code is executed?

Question 6 options:

a)

3

b)

2

c)

4

Question 7 (10 points)

In the code that follows, prompt is a/an ____________________________. window.prompt("Enter your name");

Question 7 options:

Question 8 (10 points)

If an arithmetic expression isnt evaluated the way you want it to be due to the order of precedence, you can override that order by using ____________________.

Question 8 options:

Question 9 (10 points)

To get the contents of a text box on a form, you use the _____________________ property of a Textbox object.

Question 9 options:

Question 10 (10 points)

Saved

After the statements that follow are executed, guest contains var guest = "Ray Harris"; var quest = guest.substr(0,3).toUpperCase();

Question 10 options:

a)

"RAY"

b)

"Ray Harris"

c)

"Ray"

d)

"RAY Harris"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!