Guide to UNIX Using Linux Fourth Edition
Chapter 10 Solutions
Answers to the Chapter 10 Review Questions
1. A new programmer whom you are training is writing a C program and he wants to place comment
lines in the program. Which of the following characters should be used at the beginning and end of
the comments?
2. You’ve written a C program, but are now getting an error message about the use of standard input
and output statements when you compile the program. Which of the following might be the cause?
3. Which of the following is in the proper format for a character constant? (Choose all that apply.)
4. Which of the following are performed by functions in the C library? (Choose all that apply.)
5. A daemon is a _____________..
6. A colleague of yours is just learning to use the C compiler in Linux. When she tries to compile a
program called firststart.c using gcc firststart.c she is expecting the executable file to have the
name firststart, but there is no firststart file. What is the executable file’s name?
7. You have written a C program using the variables num, enum, sum, and long. When you compile
the program you get an error message about using a variable the compiler finds unacceptable.
Which of the following is likely to be the problem?
8. Which of the following are examples of data types in the C language? (Choose all that apply.)
9. Which of the following is the right way to use the string constant, Enter your ID:, in the C
language?
10. Which of the following functions must be in a C program? (Choose all that apply.)
11. Which of the following statements enables you to print File updated on the screen when a C++
program is finished?
12. Which of the following are important characteristics of C++ programming? (Choose all that
apply.) Answer: b. object-oriented programming and c. use of classes for specialized