Given the following array, create a variable named product that will give the product of 4 * 5.
```
var nums = new Array(3,4,5,6,7,8,-99);
```
a.
```
var fives = new Array();
for (j = 1; j < 11; j++)
fives[j] = j + 5;
```
b.
```
var fives = new Array();
for (j = 1; j < 11; j++)
fives[j] = j * 5;
```
c.
```
var fives = new Array();
fives[0] = 0;
for (j = 1; j < 10; j++)
fives[j] = fives[j-1] + 5;
```
d.
```
var fives = new Array();
for (j = 0; j < 11; j++)
fives[j] = fives[j] + 1;
```
c.
```
var fives = new Array();
fives[0] = 0;
for (j = 1; j < 10; j++)
fives[j] = fives[j-1] + 5;
```
You might also like to view...
How many needles are used in the Tower of Hanoi problem?
A. one B. two C. three D. four
A computer that provides support for multiple H.323 terminals and manages communication between them is known as what term below?
A. ?H.323 gateway B. ?H.323 gatekeeper C. ?MCU D. ?H.323 server
A media query detects the media type and capabilities of the device that a browser is running on.?
Answer the following statement true (T) or false (F)
Formulate the following queries in relational algebra, tuple relational calculus, and domain relational calculus (the answers to these queries in SQL are given in the next section).
The following tables form part of a database held in a Relational Database Management System: Employee (empNo, eName, salary, position) Aircraft (aircraftNo, aName, aModel, flyingRange) Flight (flightNo, from, to, flightDistance, departTime, arriveTime) Certified (empNo, aircraftNo) where Employee contains details of all employees (pilots and non-pilots) and empNo is the key. AirCraft contains details of aircraft and aircraftNo is the key. Flight contains details of the flights and flightNo is the key. and Certified contains details of the staff who are certified to fly an aircraft, and empNo/aircraftNo form the key. (1) List all Boeing aircraft. (2) List all Boeing 737 aircraft. (3) List the employee numbers of pilots certified for Boeing aircraft. (4) List the names of pilots certified for Boeing aircraft. (5) List the aircraft that can fly nonstop from Glasgow to New York (flyingRange > flightDistance). (6) List the employee numbers of employees who have the highest salary. (7) List the employee numbers of employees who have the second highest salary. (8) List the employee numbers of employees who are certified for exactly three aircraft.