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 04:40
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
question
Computers and Technology, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Using a conditional expression, write a statement that increments numusers if updatedirection is 1, otherwise decrements numusers. ex: if numusers is 8 and updatedirection is 1, numusers becomes 9; if updatedirection is 0, numusers becomes 7.
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
You may see the term faq on websites which stands for frequently asked questions this is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation ken has dipped many dark chocolate marshmallows (which you remember the metric system distance units in decreasing order: kilometers, hectometer, decameter, centimeter, millimeter) is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation !
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, 01.12.2020 09:20
question
Mathematics, 01.12.2020 09:20
question
World Languages, 01.12.2020 09:20
question
Social Studies, 01.12.2020 09:20
question
Mathematics, 01.12.2020 09:20