Unit 2 exam

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

What would be the result of the following C++ code (assuming all necessary directives)?

1.234567e+03

What is the result of the following arithmetic expression in C++? 2 + 4 * 2

10

What would be the result of the following C++ code (assuming all necessary directives)? ​ double number = 1234.567; cout << fixed << number << endl;

1234.567000

What would be the result of the following C++ code (assuming all necessary directives)? ​ double number = 1234.56; cout << fixed; cout << setprecision(0); cout << number << endl; ​

1235

Another name for logical operators are comparison operators.

False

By default in C++, smaller real numbers with a decimal place (those containing six or fewer digits to the left of the decimal) are displayed in exponential notation.

False

With short-circuit evaluation, each sub-condition is independent of any other sub-condition.

False

Another name for the selection structure is the decision structure.

True

C++ provides stream manipulators that allow the programmer to control the format used to display real numbers.

True

In the summary of operators, all arithmetic operators will be evaluated prior to any logical operators.

True

Which of the following describes an item that appears between parentheses in a function's syntax?

argument

AND and OR are the two most commonly used examples of which type of operator?

boolean

Which symbol in a flowchart is known as the decision symbol?

diamond

Selection structures that contain instructions on both the true and false paths are referred to as which of the following?

dual-alternative

When either a selection structure's true path or its false path contains another selection structure, the inner selection structure is referred to as which selection structure?

nested

To display real numbers in exponential notation, the programmer would use which stream manipulator?

scientific


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

Pituitary Hypophysis Endocrine Gland Histology

View Set

Microbiology: Chapter 9: Gene Transfer and Recombination

View Set

Ch 11 Decontam and Sterilization

View Set

Chapter 15 Critical Thinking in Nursing Practice

View Set