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, 22.06.2019 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
@josethesolis i need can anyone text me and follow me
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
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
Law, 27.05.2021 07:30
question
Spanish, 27.05.2021 07:30
question
Mathematics, 27.05.2021 07:30
question
Mathematics, 27.05.2021 07:30
question
Mathematics, 27.05.2021 07:30
question
English, 27.05.2021 07:30
question
Mathematics, 27.05.2021 07:30
question
Social Studies, 27.05.2021 07:30
question
Mathematics, 27.05.2021 07:30
Questions on the website: 13722360