




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





. This is a closed book, closed notes examination. . Write your answers on the examination paper in ink or legible pencil. . If your answer cannot be read or understood , or if your answer is vague or confused, it will be marked wrong. . In any question, make any assumptions that you need to but document your assumptions. . The number in parentheses after each question is the number of points allocated to that ques- tion.
NAME ( Print Legibly. All Capitals ):
PLEDGE ( Write Out In Full And Sign ):
Final Examination - Three Hours
Page score
PressureAlarm := (Pressure < PLimit); if (Temp > TLimit) and PressureAlarm then if CoolingPumpState = On then EmergencyIndicator := On; else ReactantPump := On; endif; endif;
(a) What are the decisions in this code in the sense of MC/DC test coverage? (5)
(b) What are the conditions in this code in the sense of MC/DC test coverage? (5)
Page score
(a) Define the set consisting of all the graduate students in CS651. (5)
(b) Define a predicate that is true if and only if there are more graduate students in the class than undergraduates. (5)
Page score
Page score