In the algorithm that checks for a balanced expression, which of the following is true if a closing bracket is encountered?
A. if the stack is empty, the brackets balance
B. if the item on the top of the stack is a closing bracket of the same type, the brackets balance
C. if the stack is empty or the item on the top of the stack is not an opening bracket of the same type, the brackets don't balance
D. if the stack is empty or the item on the bottom of the stack is an opening bracket of the same type, the brackets balance
Answer: C
You might also like to view...
Inside the parentheses of the for statement are three items, separated by ____.
a. dots b. commas c. colons d. semicolons
Which is the correct sequence according to the DNS naming convention?
A. root.domain.host B. domain.host.root C. host.domain.root D. domain.root.host
In IPsec, key management is accomplished through a protocol known as ____.
A. Encapsulating Security Payload (ESP) B. ISAKMP/Oakley C. Authentication Header (AH) D. L2TP
To protect hardware from damage due to power fluctuations, it is important for all computer users to use a voltage inverter.
Answer the following statement true (T) or false (F)