Which of the following is a JavaScript repetition structure?

a) while/repeat
b) do/while
c) do/repeat
d) for/do


b) do/while

Computer Science & Information Technology

You might also like to view...

Which of the following functions accepts a parameter named dblSales and returns the commission to the calling statement? Assume that the commission should equal the sales multiplied by the commission rate. Use the following table as a guide to the calculation of the commission rate.



a.```
Function Calc(ByVal dblSales As Double, ByRef dblComm As Double)
Dim dblRate As Double
Select Case dblSales
Case Is < 2000
dblRate = .1
Case Is >= 2000
dblRate = .15
End Select
DblComm = dblRate
End Function
```

b.```
Function Calc(ByVal dblSales As Double) As Double
Dim dblRate, dblComm as Double
Select Case dblSales
Case Is < 2000
dblRate = .1
Case Is >= 2000
dblRate = .15
End Select
dblCommission = dblRate * dblSales
End Function
```

c.```
Function Calc(ByVal dblSales As Double) As Double
Dim dblRate As Double
Select Case dblSales
Case Is < 2000
dblRate = .1
Case Is >= 2000
dblRate = .15
End

Computer Science & Information Technology

Which of the following is the first step a LAN-based host takes when a destination is NOT local?

A) Find the destination host's MAC address. B) Encapsulate the IP packet in a data-link frame for the destination host. C) Find the default gateway's MAC address. D) Encapsulate the IP packet in a data-link frame for the default gateway.

Computer Science & Information Technology

A technical security architecture should be created ________.

annually before a firm creates individual countermeasures before a firm creates a specific countermeasure after each major compromise

Computer Science & Information Technology

The character that separates tokens is known as a(n) ____________.

a. sentinel
b. article
c. delimiter
d. separator

Computer Science & Information Technology