Suppose an array reptiles is ["snake", "turtle", "lizard"]. To add "crocodile" to the beginning of the array, use the statement ___.

A. reptiles.push("crocodile");
B. reptiles.push();
C. reptiles.pop("crocodile");
D. reptiles.pop();
E. reptiles.unshift("crocodile");
F. reptiles.unshift();
G. reptiles.shift("crocodile");
H. reptiles.shift();


E. reptiles.unshift("crocodile");

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true?

a. The capacity of a StringBuilder is equal to its length. b. The capacity of a StringBuilder cannot exceed its length. c. The length of a StringBuilder cannot exceed its capacity. d. Both a and b are true.

Computer Science & Information Technology

You can simulate atomicity by ensuring that ________.

a. at least one thread carries out its operations on an object at a time b. two threads carry out their operations on an object in parallel c. only one thread carries out its operations on an object at a time d. None of the above.

Computer Science & Information Technology

Match the RAID level with the description

RAID 0 RAID 1 RAID 5 A) Three or more hard drives with one drive used for parity B. Disk mirroring with two hard drives as a minimum C. Disk striping without parity with two hard drives as a minimum

Computer Science & Information Technology

Briefly describe the best practice rules for firewall use.

What will be an ideal response?

Computer Science & Information Technology