PFC-quiz2 - thi trc nghim PFC Quiz2 slot 05(10 Ghi ch Nhng cu khng ghi im c hiu l 1 im 1.01(0.5 im What is the correct value to return to the

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- Quiz2 - slot 05 (10') Ghi chú: Nh ng câu không ghi đi m đ c hi u là 1 đi m. ượ 1.01 (0.5 đi m) What is the correct value to return to the operating system upon the successful completion of a program? -1 1 0 đúng Programs do not return a value. 1.02. (0.5 đi m) What is the only function all C programs must contain? start() system() main() đúng program() 1.03. (0.5 đi m) Which of the following is a correct comment? */ Comments */ ** Comment ** { Comment } /* Comment */ đúng 1.04. Which of the following is not a correct variable type? float real đúng int double 1.05. (0.5 đi m) Which of the following is the correct operator to compare two variables? := = equal == đúng 1.06. Why can typecasting be dangerous?
Background image of page 1

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

View Full DocumentRight Arrow Icon
Some conversions are not defined, such as char to int. You might permanently change the value of the variable. You might temporarily lose part of the data - such as truncating a float
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 / 3

PFC-quiz2 - thi trc nghim PFC Quiz2 slot 05(10 Ghi ch Nhng cu khng ghi im c hiu l 1 im 1.01(0.5 im What is the correct value to return to the

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