next up previous
Next: Modifications Up: immig-emig Previous: for loop

Quiz

  1. What is the difference between object code and source code?
  2. If you are going to give a program to your friend, do you give the source code or object code?
  3. How do you add comments? Why are comments used?
  4. What does #include do? Do all C source codes need to use this statement?
  5. How do you set symbolic constants?
  6. What characters are allowed in variable names?
  7. Write the smallest possible C program.
  8. Does a program without any Syntax errors give always correct results?
  9. To represent following quantity, what types of variables would you use?
    Person's height in mm
    Population size of moose in Alaska
    Annual salary
    The temperature in celsius
    Probability that a predator find a prey
    Number of eggs a female red salmon produces
    Frequency of males in a population



Naoki Takebayashi 2008-02-11