Question 1

In the robust library's add_to_queue function, the fields head and count of the queue head are not checked for consistency in that function. What problem might this cause?


Question 2

Which of the following are things to do in robust programming? (Select all that apply.)


Question 3

In the robust library, what happens if the queue array is full and the function to create a new queue is called?


Question 4

In the robust library, the token generation function qtktref does not check that the nonce is non-negative. Why not?


Question 5

Which of the following is *not* a problem with the take_off_queue() routine in the fragile library?


Question 6

Why does the token include a nonce?


Question 7

Which of the following is a property of fragile programming?


Question 8

Complete the sentence: a function with high cohesion __________.


Question 9

What is the relationship between programming robustly and programming defensively?