About Lesson
Q1. Consider the program below.
- Fill in the blank at LINE-1 to declare a stack variable st.
- Fill in the blank at LINE-2 to push values into the stack.
- Fill in the blank at LINE-3 with the appropriate statement.
The program must satisfy the given test cases.
Code:-
Q2. Consider the following program.
• Fill in the blank at LINE-1 with the appropriate if statement,
• Fill in the blank at LINE-2 and LINE-3 with the appropriate return statements.
The program must satisfy the sample input and output.
Code:-
Q3.
Code:-