1. Which of the following function can interpret data in the C language?.
A. printf.
B. scanf.
C. proc.
D. file.
Answer= scanf
2. What is the first stage of the compilation process?.
A. pre-processing.
B. post-processing.
C. compilation.
D. linking.
Answer= pre-processing
3. Which of the following produces an assembler file in the compilation process?.
A. pre-processor.
B. assembler.
C. compiler.
D. post-processing.
Answer= compiler
4. Which file is converted to an object file?.
A. hex file.
B. decoded file.
C. coded file.
D. assembly file.
Answer= assembly file
5. Which of the following contains the hexadecimal coding?.
A. object file.
B. assembly file.
C. coded file.
D. decoded file.
Answer= object file
6. Which of the following processes the source code before it goes to the compiler?.
A. compiler.
B. simulator.
C. pre-processor.
D. emulator.
Answer= pre-processor
7. Which of the following allows the programmer to define constants?.
A. pre-processor.
B. compiler.
C. emulator.
D. debugger.
Answer= pre-processor
8. Which statement replaces all occurrences of the identifier with string?.
A. define identifier string.
B. include.
C. define MACRO().
D. ifdef.
Answer= define identifier string
9. Which of the following has the include file?.
A. emulator.
B. debugger.
C. pre-processor.
D. simulator.
Answer= pre-processor
10. Which statement is used to condense the code to improve the eligibility?.
A. define MACRO().
B. include.
C. if.
D. else-if.
Answer= define MACRO()
11. Which of the following are header files?.
A. include.
B. file.
C. struct().
D. proc().
Answer= include
12. Which is the standard C compiler used for the UNIX systems?.
A. simulator.
B. compiler.
C. cc.
D. sc.
Answer= cc
13. Which compiling option is used to compile programs to form part of a library?.
A. -c.
B. = -p.
C. = -f.
D. = -g.
Answer= -c
14. Which compiling option can be used for finding which part of the program is consuming most of the processing time?.
A. = -f.
B. = -g.
C. = -p.
D. -c.
Answer= = -p
15. Which compiling option can generate symbolic debug information for debuggers?.
A. -c.
B. = -p.
C. = -f.
D. = -g.
Answer= = -g
16. Which of the following is also known as loader?.
A. locater.
B. linker.
C. assembler.
D. compiler.
Answer= linker
17. Which of the following gives the final control to the programmer?.
A. linker.
B. compiler.
C. locater.
D. simulator.
Answer= linker
18. Which command takes the object file and searches library files to find the routine calls?.
A. simulator.
B. emulator.
C. debugger.
D. linker.
Answer= linker
19. Which assembler option is used to turn off long or short address optimization?.
A. = -n.
B. = -V.
C. = -m.
D. = -o.
Answer= = -n
20. Which assembler option runs the m4 macro preprocessor on the source file?.
A. = -n.
B. = -m.
C. = -V.
D. = -o.
Answer= = -m