PFC-quiz9 - thi trc nghim PFC Quiz9 slot 35(10 Ghi ch Nhng cu khng ghi im c hiu l 1 im 9.01(0.5 im What is the header file containing getch

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- Quiz9 - slot 35 (10') Ghi chú: Nh ng câu không ghi đi m đ c hi u là 1 đi m. ượ 9.01. (0.5 đi m) What is the header file containing getch() function? conio đúng stdlib stdio.h all of the above 9.02. (0.5 đi m) Which loop that counts from 0 to 5 for (c = 0; c <= 5; c++) đúng for (int c = 0; c <= 6; c++) for (c = 0; c < 5; c++) for (c = 0; c <= 4; c++) 9.03. (0.5 đi m) For which value(s) of the integer x will the following code become an infinite loop? int number=1; while(1) { printf("%d ",number); if (number == 3) break; number += x; } only 0 đúng only 1 only 2 only 1 or 2 9.04 (0.5 đi m) After the sample code below has been executed, what value will the variable x contain? int x = 5; int y = 2; char op = '*'; switch (op) { default : x += 1; case '+' : x += y; case '-' : x -= y;
Background image of page 1

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

View Full DocumentRight Arrow Icon
} 4 5 6 đúng 7 8 9.05 (0.5 đi m) With what do you replace the ???? to make the function shown below return the correct answer? long factorial (long x)
Background image of page 2
Image of page 3
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 / 4

PFC-quiz9 - thi trc nghim PFC Quiz9 slot 35(10 Ghi ch Nhng cu khng ghi im c hiu l 1 im 9.01(0.5 im What is the header file containing getch

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