CS 139 Chapter 2

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

In C++11, if you want an integer literal to be treated as a long long int, you can append ________ at the end of the number.

LL

The data type used to declare variables that can hold real numbers is

float

Which of the following must every C++ program have?

function main

The preprocessor inserts the entire contents of the file into the program at the point it encounters this.

the #include directive

Escape sequences are always stored internally as a single character.

True

Floating point constants are normally stored in memory as doubles.

True

One of the problems of portability is the lack of common sizes of data types on all machines.

True

Preprocessor directives are not C++ statements.

True

The compiler doesn't actually see the #include directive. Instead it sees the code that was inserted by the preprocessor, just as if the programmer had typed it there.

True

When string literals are sent to cout they are printed exactly as they appear inside the quotation marks.

True

short and short int are the same data type.

True

The preprocessor executes after the compiler.

False

Unsigned data types can store positive or negative values.

False

The word in the brackets of an include directive specifies

a file containing code that is copied into the program at that point.

A preprocessor directive starts with #. Preprocessor directives are carried out _______

just before a program is processed by the compiler.

Which of the following data types allows you to store the largest value?

long long int

In memory, C++ automatically places a(n) ________ at the end of string literals which ________.

null terminator, marks the end of the string


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

Fetal Assessment During Labor NCLEX

View Set

MGT 360 Ch 13: Human Resources Management

View Set

Network+ Quiz Network Topologies and Types / Media

View Set

Biology: Photosynthesis and Cellular Respiration

View Set

Astronomy test study questions (1)

View Set

Management Test 4, Chapter 14 MNGT, Chapter 14 Foundations of Control, Management Exam 4

View Set

4.05 Quiz: Triangle Congruence and Rigid Motions

View Set