subject

The do-while loop is a loop that is ideal in situations where you always want
the loop to iterate at least once.

a) none of these
b) null-terminated
c) post-test
d) infinite
e) pre-test

2.

what will the following code display?

int number = 6
int x = 0;
x = --number;
cout < < x < < endl;

a) 6
b) 7
c) 0
d) 5

3.

this operator increments the value of its operand, then uses the value in context.

a) prefix decrement
b) prefix increment
c) postfix decrement
d) none of these
e) postfix increment

4.

how many times will the following loop display "hello"?

for (int i = 0; i < = 20; i++)
cout < < "hello! " < < endl;

a) 21
b) 19
c) 20
d) an infinite number of times

5.

something within a while loop must eventually cause the condition to become false, or a(n)
results.

a) compiler error
b) null value
c) none of these
d) unexpected exit
e) infinite loop

6.

in a for statement, this expression is executed only once.

a) null
b) test
c) validation
d) initialization
e) none of these

7.

these are operators that add and subtract one from their operands.

a) binary and unary
b) conditional and relational
c) plus and minus
d) none of these
e) ++ and --

8.

this is a special value that marks the end of a list of values.

a) sentinel
b) constant
c) none of these
d) variable
e) loop

9.

the do-while loop is considered a(n) loop.

a) post-test
b) pre-test
c) none of these
d) infinite
e) limited

10.

this is a control structure that causes a statement or group of statements to repeat.

a) constant
b) cout object
c) decision statement
d) none of these
e) loop

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
Retype the statements, correcting the syntax errors. system.out.println("num: " + songnum); system.out.println(int songnum); system.out.println(songnum " songs"); note: these activities may test code with different test values. this activity will perform two tests: the first with songnum = 5, the second with songnum = 9. see how to use zybooks.
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Colby works as a shipping clerk for a major package delivery service. some of his daily tasks include tracking shipments and entering orders. which aspect of the information technology cluster would he most likely be trained in? a.networkingb.databasesc.hardwared.software
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
You know the right answer?
The do-while loop is a loop that is ideal in situations where you always want
the loop to ite...
Questions
question
Mathematics, 03.04.2020 03:51
question
Mathematics, 03.04.2020 03:51
question
Mathematics, 03.04.2020 03:52
question
Mathematics, 03.04.2020 03:52
Questions on the website: 13722361