Chapter 2 - C++ Programming

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

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.

False

A comma is also called a statement terminator.

...

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

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.

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.

four

The memory allocated for a float value is ___ bytes.

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


संबंधित स्टडी सेट्स

Ch 5: Introduction to Valuation: The Time Value of Money

View Set

European History: Year in Review (2017-2018)

View Set

Geometry Honors: 03.02 Similarity

View Set

GI PrepU - Ch46 - 29 Ch47 - 11 Ch50 - 3 Ch44 after 43

View Set

BIBL 104-Quiz: The Old Testament Books of Prophecy

View Set