PFC-quiz4 - Đ ề thi tr c nghi m PFC Quiz4 slot 15(10 ắ...

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

View Full Document Right Arrow Icon

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Đ ề thi tr c nghi m PFC- Quiz4 - slot 15 (10') ắ ệ Ghi chú: Nh ng câu không ghi đi m đ c hi u là 1 đi m. ữ ể ượ ể ể 4.01. Which is not a proper prototype? int funct(char x, char y); double funct(char x) đúng void funct(); char x(); 4.02. (0.5 đi m) ể What is the return type of the function foo (with prototype) below: int foo(char x, float v, double t); char int đúng float double 4.03. Which of the following is a valid function call (assuming the function exists)? funct; funct x, y; funct(); đúng int funct(); 4.04. Which of the following is a complete function? int funct(); int funct(int x) {return x=x+1;} đúng void funct(int) {printf( "Hello" ); void funct(x) {printf( "Hello" ); } 4.05. What is the output when the sample code below is executed? int calculate(int c) { c = c + 15; if(c>=45) return(10); else return(10*10); } int main() { int a=20,b; b=calculate(a); printf("%d %d", a, b); return(0); } 45 100 45 10 20 10 20 100 đúng compiler error 4.06. 4....
View Full Document

{[ snackBarMessage ]}

Page1 / 4

PFC-quiz4 - Đ ề thi tr c nghi m PFC Quiz4 slot 15(10 ắ...

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