Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

If the corresponding end bracket/braces/parentheses is encountered, which of the following is done?

a) push it on to the stack
b) pop the stack
c) throw an error
d) treated as an exception

Answer: b
Explanation: When the corresponding end bracket/braces/parentheses is encountered, the stack is popped. When an opening bracket/braces/parentheses is encountered, it is pushed on to the stack.

Join The Discussion