What, if anything, is wrong with the following code?
?
int final = 1;int varA = 0;int varB;do while (varA < 3){ for (varB = 1; varB < 3; varB +=1) final = final * varB;
varA += 1;}
?
A. the for loop needs opening and closing braces
B. nothing is wrong
C. a semicolon is required after the while loop
D. the while condition is in the wrong place
Answer: D
You might also like to view...
Select the term below which names an HTML5 API that allows web page visitors to share their geographic location.
a. geodata b. web storage c. canvas d. geolocation
Suppose you declare int count = 5; which of the following is true?
A. &count is 5 B. *count is the address of count C. *count is 5 D. &count is the address of count
A(n) ________ is used to deliver educational materials, track student interactions, and assess student performance
A) PaaS B) personal SaaS C) CSP D) LMS
Which of the following is most susceptible to ESD?
A) Flash memory B) Thumb drive C) BIOS D) RAM