• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/16

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

16 Cards in this Set

  • Front
  • Back

Which character signifies the beginning of an escape sequence?

\

These are used to declare variables that can hold real numbers.

Floating point data types

Assume that a program has the following string object definition:




string name;




Which of the following statements correctly assigns a string literal to the string object?

name = "Jane";

Which of the following defines a double-precision floating point variable named payCheck?

double payCheck;

The float data type is considered ________ precision, and the double data type is considered ________ precision.

single, double

What will the following code display?




int number = 7;


cout << "The number is " << "number" << endl;

The number is number

This function in C++ allows you to identify how many bytes of storage on your computer system an integer data value requires.

sizeof

________ must be included in any program that uses the cout object.

The header file iostream

What will the value of x be after the following statements execute?




int x;


x = 18 / 4;

4

A character literal is enclosed in ________ quotation marks, whereas a string literal is enclosed in ________ quotation marks.

single, double

What will the following code display?




cout << "Four" << "score" << endl;


cout << "and" << "seven" << endl;


cout << "years" << "ago" << endl;

Fourscore


andseven


yearsago

Assume that a program has the following variable definition:




char letter;




Which of the following statements correctly assigns the character Z to the variable?

letter = 'Z';

A statement that starts with a # symbol is called a:

Preprocessor directive

Every complete C++ program must have a ________.

function named main

A variable whose value can be either true or false is of this data type.

bool

Which one of the following would be an illegal variable name?

3dGraph