Exam 2: Evaluating C Expressions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Multiplication, division, and modulus are said to have higher ____ than addition or subtraction.

Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
Verified

D

The result of evaluating 3.0 / 4 + 2.2 is ____.

Free
(Multiple Choice)
4.7/5
(40)
Correct Answer:
Verified

C

A(n) ____________________ is an operator that takes two operands, one on each side of the operator.

Free
(Short Answer)
4.9/5
(33)
Correct Answer:
Verified

binary operator

You can isolate the last digit of a base-10 number by performing modulus with ____.

(Multiple Choice)
4.9/5
(44)
Match each term with the correct statement below.
Premises:
rule that dictates the order in which an operator works with its operands
Responses:
char
+
count++
Correct Answer:
Verified
Premises:
Responses:
rule that dictates the order in which an operator works with its operands
char
(Matching)
4.8/5
(36)

When two operations with the same precedence appear in an arithmetic expression, the operations are carried out in order from either left to right or right to left based on their ____.

(Multiple Choice)
4.9/5
(38)

When an expression includes a(n) ____ operator, the mathematical operation takes place before the expression is evaluated.

(Multiple Choice)
4.9/5
(35)
Match each term with the correct statement below.
Premises:
postfix increment operator
Responses:
implicit cast
count++
char
Correct Answer:
Verified
Premises:
Responses:
postfix increment operator
implicit cast
(Matching)
4.8/5
(42)

A(n) ____________________ is a symbol that performs arithmetic.

(Essay)
4.7/5
(38)

____ operators evaluate the relationship between operands; you use them with Boolean expressions.

(Multiple Choice)
4.8/5
(48)

The address operator (____) is a C++ unary operator that is not available for use in most other programming languages.

(Multiple Choice)
4.9/5
(26)
Match each term with the correct statement below.
Premises:
has the highest precedence of the unifying types
Responses:
++count
%=
mixed expression
Correct Answer:
Verified
Premises:
Responses:
has the highest precedence of the unifying types
++count
(Matching)
4.8/5
(34)
Match each term with the correct statement below.
Premises:
has the lowest precedence of the unifying types
Responses:
implicit cast
%=
mixed expression
Correct Answer:
Verified
Premises:
Responses:
has the lowest precedence of the unifying types
implicit cast
(Matching)
4.8/5
(37)

When you use the += operator, you may insert a space between the + and the =.

(True/False)
4.8/5
(39)

What should you keep in mind when dividing integers?

(Essay)
4.8/5
(45)

A(n) ____ is a digit added to a number (either at the end or at the beginning) that validates the authenticity of the number.

(Multiple Choice)
4.9/5
(33)

A ____ expression is one that is interpreted to be true or false.

(Multiple Choice)
4.9/5
(35)

The unary operator ____ is the not operator; it means "the opposite of," and essentially reverses the true/false value of an expression.

(Multiple Choice)
4.8/5
(34)
Match each term with the correct statement below.
Premises:
for example, 3.2 * 2
Responses:
long double
char
implicit cast
Correct Answer:
Verified
Premises:
Responses:
for example, 3.2 * 2
long double
(Matching)
4.9/5
(35)

All arithmetic operators are binary.

(True/False)
4.7/5
(39)
Showing 1 - 20 of 51
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)