CS 150 Chapter 2 BS

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

alpha = beta; beta = beta + 1;

In a C++ program, one and two are double variables and input values are 10.5 and 30.6. After the statement cin >> one >> two; executes, ____.

one = 10.5, two = 30.6

____ is a valid char value.

'A'

The value of the expression 17 % 7 is ____.

3

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

3

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

9

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

False

The memory allocated for a float value is ____ bytes.

Four

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

True

Suppose a = 5. After the execution of the statement ++a; the value of a is 6.

True


Kaugnay na mga set ng pag-aaral

Ch 16, Interventions, Fundamental of Nursing, 3614

View Set

chapter 6 Measures of association & correlation in business

View Set

Accounting 201 Chapters 13 and 14 FINAL

View Set