Question: 33. In this question you will demonstrate your skill in writing test scripts. In Chapter 9, we studied the evaluation of post-fix expressions as an

 33. In this question you will demonstrate your skill in writingtest scripts. In Chapter 9, we studied the evaluation of post-fix expressionsas an application of stacks and queues. The evaluation function had the

33. In this question you will demonstrate your skill in writing test scripts. In Chapter 9, we studied the evaluation of post-fix expressions as an application of stacks and queues. The evaluation function had the following interface: def postfix_evaluate (expr_string): Purpose: Evaluate a postfix expression. Pre-conditions: expr_list: a string representing a post-fix expression Post-Conditions: none Return: the value of the expression Using the form below, design 3 test cases. You must indicate the inputs, the expected outputs, and the reason for your test. Using the form below, design 3 test cases. You must indicate the inputs, the expected outputs, and the reason for your test. Test case inputs: Expected result: Reason: Test case inputs: Expected result: Reason: Test case inputs: Expected result: Reason: 32. In this question you will demonstrate your understanding of references, and the Node ADT. Consider the following script, which uses the Node ADT: import node as node y = node.create (3, None) t = node.create (1, None) node.set_next (y, t) x = y y = node.get_next (y) t = node.create (4, None) node.set_next (y, t) y = node.get_next (y) In the space below, draw the Global Python frame, and the heap, showing the nodes created and all the variables, and all the references, as it would appear at the end of the script. You may use the simplified diagrams for nodes, as we did in class. You may also find it useful to work through the code above, with a rough diagram, and then draw out the final state more clearly below it. You have enough space here. Draw a box around your final

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!