Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A loop that evaluates its condition before each repetition of the loop body is a _____ loop. a. bottom-driven b. top-driven What will the following

A loop that evaluates its condition before each repetition of the loop body is a _____ loop.

a.

bottom-driven

b.

top-driven

What will the following for loop display?

int k; for( k = 2; k < 4; k++ ) cout << k;

a.

23

b.

32

c.

234

d.

nothing this is a compile error because there is no semi-colon(;) after the for

e.

4

Which of the following is not a standard C++ data type?

a.

double

b.

string

c.

int

d.

float

What will be displayed by the following decision statement?

int num = 7; if( num <= 10 ) { cout << "Less than or equal to 10"; } else { cout << "Greater than 10"; }

a.

Greater than 10

b.

Less than or equal to 10

c.

Nothing because there is a compiler error - the if/else statements are missing semicolons

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_2

Step: 3

blur-text-image_3

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

What tools does the writer use to reinforce his position?

Answered: 1 week ago