Computer Science
Related Questions
Rewrite the following SQL statement after correcting the error(s). Underline the corrections made.
INSERT IN STUDENT (RNO, MARKS) VALUE (5, 78.5);Write a function Push() which takes number as argument and add in a stack "MyValue".
Expand the following:
(a) LIFO
(b) FIFO
Assertion (A): Program should check for Overflow condition before executing Push operation on stack and similarly check for Underflow condition before executing Pop operation.
Reasoning (R): In stack, Underflow condition signifies that there is no element available in the stack while Overflow condition means no further element can be pushed in the stack.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.