HCC CS- Quiz 1

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

False

A comma is also called a statement terminator.

...

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

program_1

Is a legal identifier.

char

Is a reserved word in C++

True

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

...

Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7.

syntax

The ___ rules of programming language tell you which statements are legal, or accepted by the programming language.

True

The escape sequence /r moves the insertion point to the beginning of the next line.

...

The expression static_cast<int?(9.9) evaluates to ___.

True

The maximum number of significant digits in float values is up to 6 or 7.

True

The maximum number of significant digits in values fo the double type is 15.

double

An example of a floating point data type is ____.

False

An operator that has only one operand is called a unique operator.

True

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

False

In C++ reserved words are the same as predefined identifiers.

3

The value of the expression 17 % 7 is ____.

3

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

'A'

___ is a valid char value.

46259

___ is a valid int value

four

The memory allocated for a float value is ___ bytes.


Kaugnay na mga set ng pag-aaral

Warranties and Guarantees, Grades and Standards, & Product Life Cycles

View Set

IBUS311 Chapter 1: Globalization

View Set

15.33.4 The Contemporary United States

View Set