Chapter 2: Intro to C++

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The ________ directive causes the contents of another file to be inserted into a program.

#include

The expression 5 % 2 evaluates to

1

The expression 5 / 2 evaluates to

2

What value will be assigned to the variable number by the following statement? int number = 7.8

7

Every C++ program must have

a function called main

You must have a(n) ________ for every variable you include in a program.

definition

Which of the following definitions will allow the variable total to hold floating-point values?

float total; double total; auto total = 0.0;

The bool data type

has only two values: true and false.

________ are data items whose values cannot change while the program is running.

literals

C++ automatically places ________ at the end of a string literal.

null terminator

#include <iostream> is an example of a(n)

preprocessor directive

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

single, double

Which of the following is/are valid C++ identifiers?

June_2010

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

comment

Which of the following will cause the next output to begin on a new line?

cout << endl;

The ________ is used to display information on the computer's screen.

cout object


Set pelajaran terkait

Evolve questions for fundamentals exam 4 04/30

View Set

HESI exam questions Nursing UACCB

View Set

Ch 24 Drugs for Neuromuscular Disorders: Myasthenia Gravis, Multiple Sclerosis, and Muscle Spasms

View Set

Software Systems and Analysis Chapter 1

View Set