Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q9. Based on the following code, which choice correctly assigns the value \"Webm

ID: 3747519 • Letter: Q

Question

Q9. Based on the following code, which choice correctly assigns the value "Webmaster" to a new variable called topJob?
var computerJobs = new Array(3);
computerJobs[0] = "Programmer";
computerJobs[1] = "Database Administrator";
computerJobs[2] = "Webmaster";

   a. var topJob = computerJobs[2];
   b. var topJob = "computerJobs[2]";
   c. var topJob = computerJobs(2);
   d. var topJob = computerJobs["Webmaster"];

Q10. A server-side scripting program can use the value of the _____ attribute to determine how to process form data.
   a. method
   b. enctype
   c. accept-charset
   d. action

Q11. Which of the following properties of the Option object is a Boolean attribute?
   a. label
   b. disabled
   c. value
   d. selected

Explanation / Answer

Q9) Correct syntax to access a key of any array here is:
arrayname[index]
ANS: var topjob=computerJobs[2];

Q10)
A server-side scripting program can use the value of the method attribute to determine how to process form data.

Q11) the disabled attribute is a boolean attribute.