Computers and Technology
Computers and Technology, 26.09.2019 07:00, lanapope

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, 710jonathan
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, riah133
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
image
Computers and Technology, 23.06.2019 12:30, legend101xD
Animations and transitions are added from the
Answers: 1
image
Computers and Technology, 24.06.2019 14:30, ari313
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
Do you know the correct answer?
The do-while loop is a loop that is ideal in situations where you always want
the loop to ite...

Questions in other subjects: