Search Header Logo
Evaluating Expressions

Evaluating Expressions

Assessment

Presentation

Computers

University

Hard

Created by

Maribel Tacla

Used 38+ times

FREE Resource

1 Slide • 10 Questions

1

Evaluating Expressions

Slide image

2

Multiple Choice

These can be any legal variable names or constants in programming languages.

1

operators

2

operands

3

variables

4

constants

3

Multiple Choice

The proper syntax for postfix notation.

1

<operator> <operand1><operand2>

2

<operand1><operand2><operator>

3

<operand1> <operator><operand2>

4

<operator1> <operand><operator2>

4

Multiple Choice

Give the prefix notation:

C-C*I+T

1

* - C C I + T

2

- + * C I T C

3

- C + * C I T

4

- C * + C I T

5

Multiple Choice

These are described by basic arithmetic operators, unary operators, relational operators, or logical operators.

1

operators

2

operations

3

operands

4

expressions

6

Multiple Choice

If there are two operators with the same precedence, the computer starts to solve the expression from right to left.

1

Yes

2

No

7

Fill in the Blanks

Type answer...

8

Fill in the Blanks

Type answer...

9

Multiple Choice

Converting from infix notation to prefix notation is also known as polish notation.

1

True

2

False

10

Fill in the Blanks

Type answer...

11

Fill in the Blanks

Type answer...

Evaluating Expressions

Slide image

Show answer

Auto Play

Slide 1 / 11

SLIDE