Skip to content
KALANBLON
Show contents

Chapter 6 of 6 · 10 min

Quiz: a program in modules

Modules, headers, make and the inventory: last quiz of this course. You need 70 % correct answers to pass it.

Quiz

5 questions · pass mark: 70%

  1. 1.What does a .h header file normally contain?

    One answer

  2. 2.What is the effect of static in front of a global variable in a .c file?

    One answer

  3. 3.Complete the directive that starts an include guard.

    Complete the code

    #______ STACK_H
    #define STACK_H
    ...
    #endif
  4. 4.Two .c files include a header that contains int level = 1;. What happens?

    One answer

  5. 5.Why mustn't you write assert(add(&inv, …) == 0)? (several answers)

    Several answers possible

Your progress is saved on this device. Create a free account to keep your progress on all your devices.