Professional Documents
Culture Documents
University of Bedfordshire
School of Computer Science and Technology
CIS016-2/CIS116-2/PAT001-2/2020-21/SEM1/PAPER 1 Page 1 of 5
SECTION A: ANSWER THREE OUT OF THE FOUR QUESTIONS IN THIS SECTION
The algorithm “partition” selects a pivot to partition the list into sub-lists such that all
elements in one sub-list are smaller than the pivot and all elements in the other are
greater than the pivot.
CIS016-2/CIS116-2/PAT001-2/2020-21/SEM1/PAPER 1 Page 2 of 5
Question Two [20 marks]
CIS016-2/CIS116-2/PAT001-2/2020-21/SEM1/PAPER 1 Page 3 of 5
Console.WriteLine("The Elapsed event was raised at {0}",
e.SignalTime);
}
Explain why the OnTimedEvent method and the Main method must be declared as
static.
There is one delegate variable in the code, which is it?
Delegates are like C++ function pointers but are type safe, explain the role of the
delegate in this code?
What are the four design models required for a complete specification of a software
design? Briefly discuss the role of each in software design.
CIS016-2/CIS116-2/PAT001-2/2020-21/SEM1/PAPER 1 Page 4 of 5
SECTION B: ANSWER ALL QUESTIONS IN THIS SECTION
CIS016-2/CIS116-2/PAT001-2/2020-21/SEM1/PAPER 1 Page 5 of 5