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 01:00
Ap practice - performance task response the ap create performance task asks you to write about an abstraction that you developed and wrote into your code. most of the time that means identifying a function or procedure you wrote to "manage complexity" in your program. here is the actual prompt from the create performance task: 2d. capture and paste a program code segment that contains an abstraction you developed individually on your own (marked with a rectangle). this abstraction must integrate mathematical and logical concepts. explain how your abstraction manage the complexity of your program. (must not exceed 200 words) below is a segment of code from an "under the sea" program with a rectangle drawn around a portion of the code identifying an abstraction. imagine that you wrote this and are composing an ap response about how this abstraction manages complexity. (note: ignore the requirement that the abstraction integrate "mathematical and logical concepts" for this practice response. just write about managing complexity). explain how the abstraction marked with the rectangle in the code above manage complexity of this program. write your response here submit
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
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
Chemistry, 02.10.2020 18:01
Questions on the website: 13722361