AQA A Level · Computer Science 7517

Reverse Polish:練習問題

その場で採点される選択問題 5 問と、解説つきの記述問題 5 問。すべて「Reverse Polish」からの出題です。

10 問26 無料・登録不要
問 1
1

Convert the following Reverse Polish Notation (RPN) expression into its standard infix form:
3 4 + 2 * 7 -

問 2
1

Which of the following describes a primary advantage of using Reverse Polish Notation (RPN) in computer systems, such as in the implementation of stack-based interpreters?

問 3
1

Consider an expression tree where the post-order traversal yields the sequence: A B + C D * /. What is the equivalent infix expression, assuming standard algebraic rules apply?

問 4
1

Which of the following is a primary advantage of using Reverse Polish Notation (RPN) in computer science?

問 5
1

Which of the following describes the relationship between Post-Order tree traversal and Reverse Polish Notation?

問 6
2

Convert the following infix expression into Reverse Polish Notation (RPN): \( (5 + 3) \times 2 \).

まず自分で答えを書いてから、解説と照らし合わせましょう。

問 7
3

Evaluate the following Reverse Polish Notation expression using a stack-based approach: \( 10 \space 2 \space / \space 3 \space + \).

まず自分で答えを書いてから、解説と照らし合わせましょう。

問 8
6

Convert the complex expression \( (A + B) \times (C - D) / E \) into its equivalent Reverse Polish Notation form.

まず自分で答えを書いてから、解説と照らし合わせましょう。

問 9
3

A programmer is converting mathematical expressions for a stack-based interpreter.

(a) Convert the following infix expression to Reverse Polish Notation (RPN):
\((7 + 3) \times (10 - 2)\)

(b) State one advantage of using Reverse Polish Notation in computer systems.

まず自分で答えを書いてから、解説と照らし合わせましょう。

問 10
7

Convert the RPN expression \(12 \text{ } 3 \text{ } / \text{ } 5 \text{ } 2 \text{ } + \text{ } \times\) back into its infix equivalent.

(a) Show the state of the stack after each operation is performed.
(b) Provide the fully parenthesized infix expression.

まず自分で答えを書いてから、解説と照らし合わせましょう。

※ thinkaのコンテンツはAIにより生成されているため、内容が正確でない場合があります。補助教材としてご使用いただき、公式の教材と合わせてご確認ください。

模範解答は見ました。次はあなたの答案を採点します。

このページは良い答案の形を示せますが、あなたの答案に何が足りないかは教えられません。thinka は実際の採点基準に沿って記述答案を約 15 秒で採点します。

同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。

練習を始める