PFC-quiz3 - thi trc nghim PFC Quiz3 slot 09(10 Ghi ch Nhng...

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

Đ 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++) {}

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

View Full Document
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?
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/05/2012 for the course PFC 101 taught by Professor Abc during the Spring '11 term at Hanoi University of Technology.

Page1 / 3

PFC-quiz3 - thi trc nghim PFC Quiz3 slot 09(10 Ghi ch Nhng...

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

View Full Document
Ask a homework question - tutors are online