Question
Consider the following stack operations. What will be
the content of the stack after executing all the operations? Stack stack = new Stack ();Â stack.push( 5 );Â stack.push( 10 );Â stack.pop();Â stack.push( 15 );Â stack.push( 20 );Â stack.pop();Â stack.push( 25 );ÂSolution
The stack operates on a Last-In, First-Out (LIFO) principle. The operations are executed as follows:
- stack.push(5) → Stack: [5]
- stack.push(10) → Stack: [5, 10]
- stack.pop() → Removes the top element 10 . Stack: [5]
- stack.push(15) → Stack: [5, 15]
- stack.push(20) → Stack: [5, 15, 20]
- stack.pop() → Removes the top element 20 . Stack: [5, 15]
- stack.push(25) → Stack: [5, 15, 25]
If cos θ + sec θ = √5, then the value of cos³ θ+ sec³ θ is:
If 17sin A = 8, where 0
If A and B are complementary angles, then the value of-
sin A cos B + cos A sin B – tan A tan B + sec 2
If (3cos A - sin A) = 2 cos (90° - A), then find the value of cot A.
What is the simplified value of the given expression?
2(sin² 15° + sin² 75°) + 4sin 30° - (2sec 60° + cot 45°)
If sec2 θ = 4, then find the value of sin2 θ + cosec (90 - θ) where 0o < θ < 90o.
...- Find the simplified value of the expression:sin 2 45 o  + sin 2 60 o  - (1/3) X tan 2 60 o
If sin(x-y) = 1  and cos(x+y) = 1 /√2  then what is measure of angle x.
