PFC-quiz3 - thi trc nghim PFC- Quiz3 - slot 09 (10') Ghi...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Đ thi tr c nghi m PFC- Quiz3 - slot 09 (10') Ghi chú: Nh ng câu không ghi đi m đ c hi u là 1 đi m. ượ 3.01. How long does the following code run? for(int x=0; x<=2; x++) none twice thrice đúng forever 3.02. (0.5 đi m) Which of the following is the boolean operator for logical-and? đúng | True đúng False Unevaluatable 3.04. (0.5 đi m) Which of the following shows the correct syntax for an if statement? if expression if{ expression if( expression ) đúng expression if 3.05. (0.5 đi m) What is the final value of x when the code int x; for(x=0; x<10; x++) {}
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
is run? 10 đúng 9 0 1 3.06. (0.5 đi m) When does the code block following while(x<100) execute? When x is less than one hundred đúng When x is greater than one hundred When x is equal to one hundred While it wishes 3.07. (0.5 đi m) Which is not a loop structure in C? for do while while repeat until đúng 3.08. (0.5 đi m) At least how many times is a do while loop to loop?
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

PFC-quiz3 - thi trc nghim PFC- Quiz3 - slot 09 (10') Ghi...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online