## Question 1
Suppose the time limit for the following timestamps is 5. What will be the correct output sequence?
### Options
1. TRUE
FALSE
FALSE
TRUE
FALSE
FALSE
Incorrect
----------------------------
2. TRUE
TRUE
FALSE
TRUE
TRUE
FALSE
Correct
First two requests will be accepted as they have different messages.
The third request "bye" will be declined, that is, FALSE will be returned, because it arrives before the time limit of 5 seconds has expired.
The fourth and fifth requests, "hello" and "bye" respectively, will both be accepted, as they arrive more than 5 seconds after the previous requests with these messages.
The decision is FALSE for the sixth request, because 14 - 10 = 4, which is less than the time limit of 5 seconds.
----------------------------
3. TRUE
FALSE
FALSE
TRUE
FALSE
FALSE
Incorrect
----------------------------
---------------------------------------------
## Question 2
Suppose the time limit for the following timestamps is 5. What will be the correct output sequence?
### Options
1. TRUE
TRUE
TRUE
FALSE
TRUE
TRUE
Correct
The first two requests will be accepted as they have different messages.
The third request “okayy” will be accepted as well, because 15 - 2 = 13 exceeds the time limit of 5 seconds. So, TRUE is returned.
The decision is FALSE for the fourth request “okayy”, because 16 - 15 = 1, which is less than the time limit of 5 seconds.
The fifth request “good” will be accepted as well, because 17 - 8 = 9, which exceeds the time limit of 5 seconds. So, TRUE is returned.
The sixth request “okayy” will be accepted, because 20 - 15 = 5, which is equal to the time limit of 5 seconds (the message request 'okayy' with the time stamp value of 16 is not considered as it was not displayed).
----------------------------
2. TRUE
TRUE
FALSE
FALSE
TRUE
FALSE
Incorrect
----------------------------
3. TRUE
TRUE
TRUE
FALSE
TRUE
FALSE
Incorrect
----------------------------
---------------------------------------------