Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.Which of the following is not a valid identifier? A. bank_statement B. parts C. 123go D. goodbye 2.Preprocessor commands begin with: A. < < B.

1.Which of the following is not a valid identifier?

A. bank_statement

B. parts

C. 123go

D. goodbye

2.Preprocessor commands begin with:

A. <<

B. #

C. //

D. {

3. A floating-point number is:

A. A signed or unsigned integer

B. Any positive number that has a decimal point

C. An integer with an undetermined decimal point

D. Any signed or unsigned decimal number that has a decimal point

4. A legal C++ declaration and initialization is:

A. grade1 = 67.0;

B. float grade2 = float grade1;

C. float grade1, grade2;

D. float grade1 = 67.0;

5. For the following function prototypes, which function definition would be used in the function call x = answer (y,11.0); where x and y are of type double?

A. double answer (double data1, double data2);

B. double answer (double time, int count);

C. double answer (int data1, double data2);

D. None of the above

6. The cout object can be used to display:

A. Letters of the alphabet only

B. Character and integer data types

C. All of C++ data types

D. Short English phrases, but no foreign words

7. The statement 3 + 7 = total;

A. is invalid

B. is valid, and total is assigned the value 10

C. is valid because total is mnemonic

D. is a mixed-mode expression

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

1. What does the term business etiquette mean to you?

Answered: 1 week ago