Back

C Quiz

Pass with 7 / 10 to unlock your certificate.

  1. 1. What does sizeof('A') return in C?

  2. 2. Which header declares malloc?

  3. 3. What does a NULL pointer dereference cause?

  4. 4. Which storage class makes a variable persist between function calls?

  5. 5. What is the result of 5 / 2 in C?

  6. 6. How do you correctly free dynamically allocated memory?

  7. 7. Which operator gives the address of a variable?

  8. 8. What does `const int *p` mean?

  9. 9. Which function reads a line safely (no buffer overflow)?

  10. 10. What is the format specifier for an unsigned long?