C Language Practice Test – 1

1. 
C language Practice Tests
Which operator is used to perform a bitwise XOR operation in C?

2. 
C language Practice Tests
When should the volatile qualifier be used for a variable?

3. 
C language Practice Tests
Which keyword prevents a function from being inlined by the compiler?

4. 
C language Practice Tests
What is the purpose of setjmp() in C?

5. 
C language Practice Tests
Which function is used to adjust the size of a previously allocated memory block?

6. 
C language Practice Tests
What does the sizeof operator return for an int on a 64-bit system?

7. 
C language Practice Tests
How can you declare an array whose size is determined at runtime?

8. 
C language Practice Tests
How do you compile a C source file into a shared library?

9. 
C language Practice Tests
Which syntax is correct for declaring a pointer to a function that returns an int?

10. 
C language Practice Tests
What effect does the static keyword have on a variable within a function?