Answer:
12. for (i = 0 ; i < testGrades.length ; i+=1 ){
13. if (testGrades[i] > 100){
14. sumExtra = sumExtra + testGrades[i] - 100;}
15. }
Explanation:
We first iterate through the entire testGrades array. For each test score that is in testGrades ( that is testGrades[i] ), we see whether or not the test grade is above 100 (See line 12) . If test grade is greater than 100, this means we have extra credit. We simply subtract 100 from the test grade, add it with the previous value of sumExtra and store the value back in sumExtra(see line 14). Once i is greater than the length of the test grades, the loop is exited. We can now print sumExtra to obtain the result.
What are ur possible answers
Answer:
A digital projector, also called a digital projection display system, is a specialized computer display that projects an enlarged image on a movie screen. Such devices are commonly used in presentations.
its different because In a computer display , the screen is the physical surface on which visual information is presented. This surface is usually made of glass.
Answer:
B. i < list.length
Explanation:
This question is terribly worded, but I assume the meaning is which answer will not result in an error if it's used in the while condition of the for loop. The correct answer is b. i < list.length is telling the loop to continue as long as the variable i is less than the length of the array list.
Answers C and D could potentially be valid under certain circumstances, but very unusual. Answer A will give an error as list[list.length] will give an undefined value (assuming this is indeed javascript and not some other languge).
Answer:
left click, then click save image
Explanation: