Question 21
You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
Question 22
You are creating an application for a priority help desk center. The most recent call must be handled first.
Which data structure should you use?
Question 23
You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8.
The following sequence of operations is executed:
Pop Push 3 Pop Push 4 Push 6 Push 7 Pop Pop Pop
What is the value of the top element after these operations are executed?
Question 24
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least once.
Which looping structure should you use?
Question 25
In this XHTML code sample, what will cause an error?
