Exam 2: Basic Elements of C

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

____________________ rules determine the meaning of instructions.

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

Semantic
semantic

Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____.

Free
(Multiple Choice)
5.0/5
(44)
Correct Answer:
Verified

A

A mixed arithmetic expression contains all operands of the same type.

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

False

The value of the expression 33/10, assuming both values are integral data types, is ____.

(Multiple Choice)
4.9/5
(38)

Choose the output of the following C++ statement: cout << "Sunny " << '\n' << "Day " << endl;

(Multiple Choice)
5.0/5
(40)

Suppose that alpha and beta are int variables. The statement alpha = beta--; is equivalent to the statement(s) ____.

(Multiple Choice)
4.8/5
(43)

The expression static_cast<int>(9.9) evaluates to ____.

(Multiple Choice)
4.7/5
(35)

An example of a floating point data type is ____.

(Multiple Choice)
4.9/5
(40)

If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right.

(True/False)
4.9/5
(38)

Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent to the statement(s) ____.

(Multiple Choice)
4.7/5
(34)

Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.

(Multiple Choice)
4.7/5
(43)

When a value of one data type is automatically changed to another data type, a(n) ____________________ type coercion is said to have occurred.

(Short Answer)
4.9/5
(35)

____ is a valid char value.

(Multiple Choice)
4.9/5
(39)

A(n) ____________________ is a sequence of zero or more characters.

(Short Answer)
4.8/5
(35)

The maximum number of significant digits is called the ____________________.

(Short Answer)
4.9/5
(33)

A data type is called ____________________ if the variable or named constant of that type can store only one value at a time.

(Short Answer)
4.9/5
(30)

The memory allocated for a float value is ____ bytes.

(Multiple Choice)
4.9/5
(39)

____________________ can be used to identify the authors of the program, give the date when the program is written or modified, give a brief explanation of the program, and explain the meaning of key statements in a program.

(Short Answer)
5.0/5
(34)

____________________ is the process of planning and creating a program.

(Short Answer)
4.9/5
(39)

The expression static_cast<int>(6.9) + static_cast<int>(7.9) evaluates to ____.

(Multiple Choice)
4.7/5
(26)
Showing 1 - 20 of 50
close modal

Filters

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