Exam 14: Additional Capabilities

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

The statement ____ makes the name REAL a synonym for double.

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

A

The equivalence produced by a typedef statement can frequently be produced equally well by a ____ statement.

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

B

The statement typedef int ARRAY[100]; is not valid in C.

Free
(True/False)
4.9/5
(33)
Correct Answer:
Verified

False

A better alternative to #define SQUARE(x) (x) * (x) is #define SQUARE(x) x * x.

(True/False)
4.8/5
(34)

The ____ operator causes a bit-by-bit AND comparison between its two operands.

(Multiple Choice)
4.8/5
(36)

1 0 1 1 0 0 1 1 ____ 1 1 0 1 0 1 0 1 results in 0 1 1 0 0 1 1 0.

(Multiple Choice)
4.8/5
(41)

An optional enumerated list name can be used in an enumeration statement.

(True/False)
4.9/5
(41)

Both the #ifndef and #ifdef directives permit conditional compilation in that the statements immediately following these directives, up to either the #else or #endif directives, are compiled only if the condition is true, whereas the statements following the #else are compiled only if the condition is false.

(True/False)
4.9/5
(33)

The conditional operator has a lower precedence than the assignment operator.

(True/False)
4.7/5
(32)

____ is the exclusive OR operator.

(Multiple Choice)
4.9/5
(38)

The advantage of using a macro instead of a function is an increase in execution speed.

(True/False)
4.9/5
(26)

The full function header of a main() function that will receive command-line arguments is int main(int argc, char *argv[]).

(True/False)
4.9/5
(34)

For unsigned integers, each left shift (using the << operator) corresponds to ____.

(Multiple Choice)
4.7/5
(38)

C places several restrictions on the equivalences that can be established with the #define statement.

(True/False)
4.8/5
(43)

The typedef statement creates a new data type.

(True/False)
4.8/5
(32)

____ is the most frequently used conditional preprocessor directive.

(Multiple Choice)
4.8/5
(35)

In an arithmetic right shift (using the >> operator), each right shift corresponds to ____.

(Multiple Choice)
4.8/5
(36)

When the bit operators &, |, and ^ are used with operands of different sizes, the shorter operand is always increased in bit size to match the size of the larger operand.

(True/False)
5.0/5
(32)

One of the differences between the a typedef statement and a #define statement is that typedef statements are processed directly by the compiler while #define statements are processed by the preprocessor.

(True/False)
4.9/5
(42)

Using uppercase names in typedef statements is mandatory.

(True/False)
4.7/5
(34)
Showing 1 - 20 of 55
close modal

Filters

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