Chat with us, powered by LiveChat CS 225 – Which C++ statement displays the string | Writedemy

CS 225 – Which C++ statement displays the string

CS 225 – Which C++ statement displays the string

Question

1)Which C++ statement displays the string

Citrus

College

to the screen?

A) cout >> “Citrus” >> endl >>”College”;

B) cout << “Citrus” << “College” << endl;

C) cout << “Citrus” << “College”;

D) cout << “Citrus” << endl << “College”;

2) Which C++ statement obtains a numeric entry and puts it into a variable named myNum?

A) cin << myNum;

B) cin >> myNum;

C) cout >> myNum;

D) cin > myNum;

3) Which C++ statement obtains a numeric entry and puts it into a variable named age?

A) cout >> age;

B) cin << age;

C) cin >> age

D) cin >> age;

4)Is the following constant declaration valid?

int RATE = 0.5;

A) True

B) False

5) Which of the following C++ statements declares and initializes taxrate to 8.5%?

A) const double TAXRATE = 0.085;

B) double TAXRATE = 0.085;

C) const double TAXRATE;

D) const double TAXRATE = 8.5;

6) Which of the following C++ statements declares and initializes degrees to 3.25%?

A) const double DEGREES;

B) const double DEGREES = 0.0325;

C) double DEGREES = 0.0325;

D) const double = 0.0325;

7) Which of the following C++ statements declares and initializes velocity to 35.5 MPH?

A) const double = 35.5;

B) double VELOCITY = 35.5;

C) const double VELOCITY;

D) const double VELOCITY = 35.5;

8) Which of the following C++ statements declares and initializes distance to 45.7?

A) const double DISTANCE = 45.7;

B) const double DISTANCE;

C) double DISTANCE = 45.7;

D) const DISTANCE = 45.7;

9) Which of the following C++ statements declares and initializes lastinitial to the letter S ?

A) const char LASTINITIAL;

B) char LASTINITIAL = ‘S’;

C) const LASTINITIAL = ‘S’;

D) const char LASTINITIAL = ‘S’;

10) Which statement post-increments variable num1?

A) ++num1;

B) num1;

C) num1++;

D) +num1+;

11) What is displayed on the console after the following code fragment has executed?

int x=2;
cout << x++;
cout << ++x;

A) 24

B) 23

C) 22

D) 42

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order