Exam 3: Processing and Interactive Input

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

The cast operator is a binary operator.

Free
(True/False)
4.8/5
(40)
Correct Answer:
Verified

False

Data type conversions take place across assignment operators.

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

True

To access the mathematical functions such as log and sqrt, you must include the following preprocessor statement in your program: ____.

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

D

Which of the following statements about rvalues and lvalues is NOT true?

(Multiple Choice)
4.8/5
(39)

Formatted floating-point numbers require ____ field width specifier(s).

(Multiple Choice)
4.8/5
(30)

The order of the format modifiers in printf() is not critical.

(True/False)
4.9/5
(39)

The arguments passed to a mathematical function must be single constants.

(True/False)
4.8/5
(42)

____ statements are also called equivalence statements.

(Multiple Choice)
4.8/5
(43)

The fflush() function flushes the input buffer of any remaining characters.

(True/False)
4.8/5
(36)

The cast operator has the syntax ____.

(Multiple Choice)
4.9/5
(37)

In C, the ____ symbol is called the assignment operator.

(Multiple Choice)
4.8/5
(30)

A function can be regarded as a "black box," where the arguments constitute the inputs to the box.

(True/False)
4.8/5
(40)

In C, the equal sign has the same meaning as an equal sign in algebra.

(True/False)
5.0/5
(35)

In addition to being a constant, the operand to the right of the equal sign in an assignment statement can be a variable or any valid C expression.

(True/False)
4.9/5
(37)

On most computer systems characters read by the keyboard are stored in a temporary holding area called a ____ immediately after they are pressed.

(Multiple Choice)
4.8/5
(39)

The conversion control sequence ____ would cause an integer number to both display its sign and be left-justified in a field width of 10 spaces.

(Multiple Choice)
4.8/5
(39)

The expression amount + 1892 = 1000 + 10 * 5 is valid in C.

(True/False)
4.8/5
(43)

A(n) ____ is a message that tells the person at the screen what should be typed.

(Multiple Choice)
4.8/5
(35)

Programs that detect and respond effectively to unexpected user input are formally referred to as ____ programs.

(Multiple Choice)
4.8/5
(36)

In C, log(x) yields the common log of x (base 10).

(True/False)
4.9/5
(38)
Showing 1 - 20 of 48
close modal

Filters

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