Chapter 1: In Class Quiz

Ace your homework & exams now with Quizwiz!

What will the following code display? cout << "Four\n" << "score\n"; cout << "and" << "\nseven"; cout << "\nyears" << "ago" << endl;

Four score and seven years ago

What will the following code display? int number = 23 ; cout << "The number is" << " number" << endl;

The number is number

For every opening brace ( { ) in a C++ program, there must be a ___

closing brace

The ___ is (are) used to display information on the computer's screen

cout object

In a cout statement, _____ or _____ will advance the output position to the beginning of the next line

endl or \n

Every complete C++ program must have a ____

funtion named main

A statement that starts with a hashtag (or pound) sympol (#) is called a ___

preprocessor directive

In the following statement, the characters Hello! are a(n) cout << "Hello!";

string literal

In a C++ program, two slash marks ( // ) indicate

the beginning of a comment

A(n) ____ represents a storage location in the computer's memory.

variable


Related study sets

Ch. 5 Audit Evidence and Documentation

View Set

Strategic Social Media (Chapters 11-15)

View Set

Fahmy 2017 -= Basic-german-vocabulary 5 = - German- English

View Set

Leccion 6 - 6.2 The preterite tense of regular verbs PAGE 152-153

View Set

Chapter 11: Income, Inequality, and Poverty

View Set