What is the correct syntax to assign values to array elements when creating the array?

A. cellPhones = ["BlackBerry Storm 9530", "LG VX8360", "Motorola MOTO W755"];
B. cellPhones = new Array("BlackBerry Storm 9530", "LG VX8360", "Motorola MOTO W755");
C. var cellPhones = new Array(3);
D. cellPhones = new Arrays["BlackBerry Storm 9530", "LG VX8360", "Motorola MOTO W755"];


Answer: B

Computer Science & Information Technology

You might also like to view...

What is the command-line interface used for on a Cisco router?

What will be an ideal response?

Computer Science & Information Technology

When two slides contain similar information and have the same format, ____________________ one slide and then making minor modifications to the new slide save time and increases consistency.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In SharePoint, the ________ permission level permits the user to view, add, update, and delete list items and documents

A) Contribute B) Full Control C) Design D) Limited Access

Computer Science & Information Technology

Which of the following programs is the default used in Windows Vista to view a photo?

A) Paint Shop Pro B) Windows Photo Gallery C) Photo Maker D) Paint

Computer Science & Information Technology