The do-while loop is considered

Assignment Help Other Subject
Reference no: EM13263999

1. 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

Reference no: EM13263999

Questions Cloud

Computers and advanced operating systems : How do you think the world would be different without today’s computers and advanced operating systems? What would be different about our daily lives, our personal lives, our education, and our professional lives? Write your response in one to two pa..
Categories of consumer decision making behavior : Describe the three categories of consumer decision making behavior. Name typical products for which each type of consumer behavior is used.
Hiv-aids virus such a critically important issue : Why is the HIV/AIDS virus such a critically important issue - particularly in Sub-Saharan Africa?
Make a database to track his dvd-blueray collection : Martin wants to make a database to track his dvd/blueray collection. He has been tracking them in a spreadsheet with these collumns:
The do-while loop is considered : This operator increments the value of its operand, then uses the value in context. In a for statement, this expression is executed only once. These are operators that add and subtract one from their operands. This is a special value that marks the en..
Unlike regular variables, these can hold multiple values : An array can easily be stepped through by using a, A two-dimensional array can be viewed as. Unlike regular variables, these can hold multiple values.
How much must the member pay : An HMO has a point of service (POS) option for its members but will pay only 80 percent of approved charges. If a member goes out of network for a medical procedure with a charge of $2,000 of which $1,2000 is approved how much must the member pay.
What is the standard deviation of the stocks returns : You find a certain stock that had returns of 14 percent, -27 percent, 19 percent, and 21 percent for four of the last five years, respectively. The average return of the stock over this period was 9.5 percent. What is the standard deviation of the..
What must the beta be for the other stock : You own a portfolio equally invested in a risk-free asset and two stocks. If one of the stocks has a beta of 1.14 and the total portfolio is equally as risky as the market, what must the beta be for the other stock in your portfolio?

Reviews

Write a Review

Other Subject Questions & Answers

  Bank or corporate system and stealing money or information

Post a link to an article about examples of hackers getting into to a bank or corporate system and stealing money or information that lead to actual stealing of money. MONEY MUST HAVE BEEN STOLEN! Then we will go from there ...

  Complementary or alternative healthcare

How are complementary or alternative healthcare options different from traditional healthcare? Are there any similarities? What are the risks of alternative and traditional healthcare?

  Future trends in disaster management

Identify and briefly discuss what you believe to be future trends in disaster management.

  Working for air lines

Maureen Droge began working for United Air Lines, as a flight attendant in 1990. In 1995,she became pregnant.UAL does not allow its flight attendants to fly during their third trimester of pregnancy, Droge was placed on involuntary leave.

  Digitally encoded information in dna

In what way, exactly, does the "digitally encoded information" in DNA provide "compelling positive evidence for the activity of a prior designing intelligence at the point of the origin of the first life"?

  Ethical decision-making process

A description of Canadian Code of Ethics for Psychologists: The 10-step ethical decision-making process.

  Ample research evidence

There is ample research evidence to suggest that odors can have a profound effect on

  Analytical thesis for my research paper.

I seem unable to come up with an ANALYTICAL thesis for my research paper. I have all the research done, but can't seem to come up with this. I am basing my paper off of the French Resistance in France during the German occupation throughout World War..

  Plato hierarchy of knowledge

Describe Plato's hierarchy of knowledge and its corresponding objects of knowledge. Describe what Plato meant by "form."

  Vygotsky sociocultural theory

To revisit Vygotsky's sociocultural theory, children advance cognitively through social interactions with adults or children who's cognitive level is ahead of their own, a concept known as scaffolding.

  Changing health care system

What other avenues might better educate the general public on the role and scope of nursing and also the changing health care system.

  Leonardo''s last supper painting

Describe the moment captured in Leonardo's Last Supper painting and why disciples are shown on the same side of the table. Describe techniques used by Leonardo to give more realism to this work.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd