
True/False Questions
1. ABCD in hex is 1010101111001101 in binary. T
2. The header file contains machine code of functions that have already been compiled. F
3. Compiler MUST have the functional prototype of the invoked function to perform its job. T
4. If error occurs during performing fscanf, then fscanf returns EOF. T
5. When designing a program, one could start with smallest parts and then proceed to larger
parts. This type of process is known as Top โ down Modular design. F
6. After preprocessing directive #define PI xyz is executed, statement printf("PI =
%f\n", PI); becomes printf("xyz = %f\n", xyz); F
7. Distributed computing is a technique of shared processing over networks. T
8. For the purpose of transferring bits, a machine's CPU and hard disks are connected by a
bus. F
9. Linker creates object code and stores it on disk. F
10. โ?โ and โ?โ are different. But both of them can be assigned to a char variable. F
11. An assembler translates machine code into assembly language instructions. F
12. White space characters are considered tokens by the C compiler. F
13. 12345.0 and 12345.0f are constants of different types. T
14. int x = 4, z = 3, y;
y = 2 * ++x + z++;
Above will assign the value 13 to y. T
15. The semantics of a programming language can cause syntax errors. F
Multiple Choice Questions
16. What would be the output of the following code fragment? C
int c = 12345, d = 10;
printf(โ%dโ, d%c);
A. %d
B. 30
C. 10
D. 3
E. None of the above
17. After the following piece of code what would A be? E
int a = 4, b = 3,c = 2, d = 1;
a += b *= c += d;
A. 15
B. 14
C. 10